You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c121914yu
changed the title
OpenAPI聊天接口流式返回的首包与openai的标准不一致。
The first packet returned by streaming from the OpenAPI chat interface is inconsistent with the openai standard.
Dec 28, 2023
I used my own key and confirmed that my key can be used normally
I understand and am willing to follow up on this issue, assist in testing and provide feedback
I understand and acknowledge the above content, and understand that project maintainers have limited energy. Issues that do not follow the rules may be ignored or closed directly
your version
Public cloud version
Private deployment version
Problem Description
When I used the OpenAPI chat interface of FastGPT, I found that the delta of the first json result of the return stream did not contain role: "assistant", which directly caused the context of Feishu Smart Partner's custom model to be unusable.
Steps to reproduce
Normally use stream=true to request the Chat/Completions interface
expected outcome
The first packet of streaming should be the same as the OpenAI standard interface, including role: "assistant"
Related screenshots
Question request:
The first packet of OpenAI's streaming return result contains role: "assistant"
Hope to fix~
例行检查
你的版本
问题描述
我使用FastGPT的OpenAPI聊天接口时,发现返回流的首包json结果delta内不包含role: "assistant",这直接导致飞书智能伙伴自定义模型的上下文无法使用。
复现步骤
正常用stream=true请求Chat/Completions接口
预期结果
流式传输的首包应当与OpenAI标准的接口一样,包含role: "assistant"
相关截图
问题请求:
OpenAI的流式返回结果首包存在role: "assistant"
希望修复~
The text was updated successfully, but these errors were encountered: