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

fix: claude stream response parse #1334

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

WqyJh
Copy link
Contributor

@WqyJh WqyJh commented Apr 19, 2024

某代理提供的 claude 接口返回的 stream 中,event:data: 之后没有空格,会导致解析不出数据,只返回一行 data: [DONE]

image

该PR放宽了 stream 的格式限制,event:data: 之后有无空格均支持。

我已确认该 PR 已自测通过,相关截图如下:

image

@songquanpeng
Copy link
Owner

额这种情况不应该联系他们改么

@WqyJh
Copy link
Contributor Author

WqyJh commented Apr 22, 2024

他们说claude返回的就是这样子,我手上没有claude的key也无法验证这个说法

@songquanpeng songquanpeng merged commit a84c7b3 into songquanpeng:main Apr 27, 2024
mxdlzg pushed a commit to mxdlzg/one-api that referenced this pull request Apr 29, 2024
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

Successfully merging this pull request may close these issues.

2 participants