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

ollama deepseek模型finishReason参数丢失 #50

Open
zhangyu0914 opened this issue Mar 17, 2025 · 1 comment
Open

ollama deepseek模型finishReason参数丢失 #50

zhangyu0914 opened this issue Mar 17, 2025 · 1 comment

Comments

@zhangyu0914
Copy link

zhangyu0914 commented Mar 17, 2025

Image
断点onEvent方法时currData有finishReason=true数据,在返回后就没有了

LnYo-Cly added a commit that referenced this issue Mar 17, 2025
@LnYo-Cly
Copy link
Owner

Image 断点onEvent方法时currData有finishReason=true数据,在返回后就没有了

这是因为ollama的最后一条消息到stop就截止了,而openai之类的还会有一个[DONE],当前逻辑是遇到stop直接return了,没有添加任何逻辑。
目前已经修改。

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

2 participants