我屏幕上看到的是:data: {"choices":[{"delta":{"content":null,"role":"assistant","reasonin...
🚨 错误信息
我屏幕上看到的是:data: {"choices":[{"delta":{"content":null,"role":"assistant","reasoning_content":""},"index":0,"logprobs":null,"finish_reason":null}],"object":"chat.completion.chunk","usage":null,"created":1756907239,"system_fingerprint":null,"model":"qwen3-235b-a22b-thinking-2507","id":"chatcmpl-13a2e0a0-29bd-9945-b378-f9c26a7b6281"}
data: {"choices":[{"finish_reason":null,"logprobs":null,"delta":{"content":null,"reasoning_content":"å¯ï¼ç¨æ·"},"index":0}],"object":"chat.completion.chunk","usage":null,"created":1756907239,"system_fingerprint":null,"model":"qwen3-235b-a22b-thinking-2507","id":"chatcmpl-13a2e0a0-29bd-9945-b378-f9c26a7b6281"}
data: {"choices":[{"delta":{"content":null,"reasoning_content":"é®âä½ å¥½"},"finish_reason":null,"index":0,"logprobs":null}],"object":"chat.completion.chunk","usage":null,"created":1756907239,"system_fingerprint":null,"model":"qwen3-235b-a22b-thinking-2507","id":"chatcmpl-13a2e0a0-29bd-9945-b378-f9c26a7b6281"}
🤖 AI解决方案
{
"choices": [
{
"delta": {
"content": null,
"role": "assistant",
"reasoning_content": ""
},
"index": 0,
"logprobs": null,
"finish_reason": null
}
],
"object": "chat.completion.chunk",
"usage": null,
"created": 1756907239,
"system_fingerprint": null,
"model": "qwen3-235b-a22b-thinking-2507",
"id": "chatcmpl-13a2e0a0-29bd-9945-b378-f9c26a7b6281"
}
{
"choices": [
{
"finish_reason": null,
"logprobs": null,
"delta": {
"content": null,
"reasoning_content": "å¯ï¼ç¨æ·"
},
"index": 0
}
],
"object": "chat.completion.chunk",
"usage": null,
"created": 1756907239,
"system_fingerprint": null,
"model": "qwen3-235b-a22b-thinking-2507",
"id": "chatcmpl-13a2e0a0-29bd-9945-b378-f9c26a7b6281"
}
{
"choices": [
{
"delta": {
"content": null,
"reasoning_content": "é®âä½ å¥½"
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"object": "chat.completion.chunk",
"usage": null,
"created": 1756907239,
"system_fingerprint": null,
"model": "qwen3-235b-a22b-thinking-2507",
"id": "chatcmpl-13a2e0a0-29bd-9945-b378-f9c26a7b6281"
}
- 错误翻译:
"reasoning_content": "å¯ï¼ç¨æ·" (这是乱码,可能是“对不起,我”)
"reasoning_content": "é®âä½ å¥½" (这是乱码,可能是“您好”)
reasoning_content 存在乱码,表明在模型生成或传输过程中,中文字符编码出现问题。
decodeURIComponent 或检查响应头中的 Content-Type。
- 如果是在后端处理,请确保发送请求时设置了正确的 Accept-Encoding 和 Content-Type,并且接收和解析响应时使用了UTF-8。