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

[Feature] 回复内容中,think的部分和回复的部分混合在一起了,看起来较为混乱,希望把think部分进行处理,并且可以收起来 #51

Open
erixyuan opened this issue Feb 28, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@erixyuan
Copy link
Contributor

现在的问题

回复内容中,think的部分和回复的部分混合在一起了,看起来较为混乱,希望把think部分进行处理,并且可以收起来

问题截图

Image

希望结果,参考如下

Image

@erixyuan erixyuan added the enhancement New feature or request label Feb 28, 2025
@deepinfect
Copy link
Collaborator

默认没这个问题,你用的是啥模型

@zerob13
Copy link
Collaborator

zerob13 commented Feb 28, 2025

查清楚问题了,开头缺少导致,但是有标签,后续可以再处理

@zerob13
Copy link
Collaborator

zerob13 commented Feb 28, 2025

可选方案:
找到最后一个</think>, 进行两部分切割,思考部分的处理就是去掉所有<think></think> 并且重新套上,然后渲染
最后修正保证正确,兜底

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

No branches or pull requests

3 participants