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

[Bug] DeepSeekR1输出未收到"finish_reason":"stop"或者data:[DONE]即中断连接 #6170

Open
YujioNako opened this issue Feb 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@YujioNako
Copy link

📦 部署方式

Vercel

📌 软件版本

2.15.8

💻 系统环境

Windows

📌 系统版本

windows11专业版

🌐 浏览器

Edge

📌 浏览器版本

132.0.2957.140 (正式版本) (64 位)

🐛 问题描述

nextchat似乎未等到deepseek输出完成就截断了与api的连接,类似于下面这种情况:

......
data: {"id":"52da55b8-1a63-4d68-8482-2fd79760b062","object":"chat.completion.chunk","created":1738915294,"model":"deepseek-reasoner","system_fingerprint":"fp_7e73fd9a08","choices":[{"index":0,"delta":{"content":"年","reasoning_content":null},"logprobs":null,"finish_reason":null}]}

data: {"id":"52da55b8-1a63-4d68-8482-2fd79760b062","object":"chat.completion.chunk","created":1738915294,"model":"deepseek-reasoner","system_fingerprint":"fp_7e73fd9a08","choices":[{"index":0,"delta":{"content":"CPI","reasoning_content":null},"logprobs":null,"finish_reason":null}]}

data: {"id":"52da55b8-1a63-4d68-8482-2fd79760b062","object":"chat.completion.chunk","created":1738915294,"model":"deepseek-reasoner","system_fingerprint":"fp_7e73fd9a08","choices":[{"index":0,"delta":{"content":"降至","reasoning_content":null},"logprobs":null,"finish_reason":null}]}

data: {"id":"52da55b8-1a63-4d68-8482-2fd79760b062","object":"chat.completion.chunk","created":1738915294,"model":"deepseek-reasoner","system_fingerprint":"fp_7e73fd9a08","choices":[{"index":0,"delta":{"content":"3","reasoning_content":null},"logprobs":null,"finish_reason":null}]}

📷 复现步骤

当使用deepseekR1输出时,大概率出现此类情况。

🚦 期望结果

软件能持续与api连接直到收到data:[DONE]信息

📝 补充信息

No response

@YujioNako YujioNako added the bug Something isn't working label Feb 7, 2025
@Issues-translate-bot
Copy link

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


Title: [Bug] DeepSeekR1 output does not receive "finish_reason":"stop" or data:[DONE], which means the connection is interrupted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants