Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码块无法正常显示出来,请求作者解决 #66

Open
player532 opened this issue Dec 20, 2024 · 7 comments
Open

代码块无法正常显示出来,请求作者解决 #66

player532 opened this issue Dec 20, 2024 · 7 comments

Comments

@player532
Copy link

模型使用的是Gemini-2.0-flash-thinking-exp,当我要求它写代码时,由于“```”紧挨着其它字符,结果就显示成了这样,无法形成代码块。作者能看看到底是什么问题吗?
Screenshot_2024_1220_150802

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: There is a problem with the code block display, please check it.

@player532 player532 changed the title 代码块显示有问题,麻烦作者查看 代码块无法正常显示出来,麻烦作者查看 Dec 20, 2024
@player532
Copy link
Author

player532 commented Dec 20, 2024

@Amery2010 我发现这个问题似乎非常严重(Gemini-2.0-flash-thinking-exp),代码块的输出显示似乎会出现在某些不该出现的地方,这些文字甚至被屏蔽掉了,就像下面所展示的图片一样:
Screenshot_20241220_181532
Screenshot_20241220_181638
Screenshot_20241220_181604

@player532 player532 changed the title 代码块无法正常显示出来,麻烦作者查看 代码块无法正常显示出来,请求作者解决 Dec 20, 2024
@Amery2010
Copy link
Collaborator

gemini-2.0-flash-thinking-exp This model has a thinking process, which is fixed as a special English explanation. I need to study whether there are specific symbols in this fixed text to distinguish it from the main text.

@player532
Copy link
Author

gemini-2.0-flash-thinking-exp This model has a thinking process, which is fixed as a special English explanation. I need to study whether there are specific symbols in this fixed text to distinguish it from the main text.

所以目前是否有办法能够解决代码块形成异常的问题?或者说,是否有临时解决的方法?我只想恳求作者尽快解决此问题🙏🙏

@player532
Copy link
Author

player532 commented Dec 21, 2024

@Amery2010 作者,我有个更好的想法。不妨先把像这样Gemini 2.0 flash thinking exp这样具备思考能力模型,就是说把思考过程输出先给忽略掉,仅输出最终输出结果,待到issue #68 所描述的功能实现后,再把思考过程输出加入其中,作者觉得如何?这是因为按照目前来看,思考过程输出并不是很重要的一项。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@Amery2010 Author, I have a better idea. You might as well start with a thinking ability model like Gemini 2.0 flash thinking exp, which means that the output of the thinking process is ignored first, and only the final output result is output. After the function described in issue #68 is implemented, the thinking process is output. Join, what do the authors think? Because at present, the output of the thinking process is not a very important item.

@Amery2010
Copy link
Collaborator

I have located and fixed a problem with code blocks rendering when the code language type is missing.
Will be updated in the next minor version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants