We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
由于使用的第三方库 OpenAI 不支持停止 stream 请求,因此目前的代码实现只是忽略了 isStreamFinished 的请求,但这样会有一个问题,如果某个请求 A 内容特别长,以至于下个新的请求发出时,请求 A 还没有结束,这样会导致同时出现两个请求交错 completion 😥
Easydict/Easydict/Swift/Service/OpenAI/BaseOpenAIService.swift
Line 129 in 30dd06d
已经有人提了这个问题 Cancel the async openAI.chatsStream(query: query) ,但这个库的维护者并没有响应,这里有个实现 longseespace/OpenAI@a290a1a ,或许我们将它 pick 到自己 fork 的库上 OpenAI 。
The text was updated successfully, but these errors were encountered:
2.8.0 版本已优化。
Sorry, something went wrong.
tisfeng
No branches or pull requests
请先确认以下事项
功能描述
由于使用的第三方库 OpenAI 不支持停止 stream 请求,因此目前的代码实现只是忽略了 isStreamFinished 的请求,但这样会有一个问题,如果某个请求 A 内容特别长,以至于下个新的请求发出时,请求 A 还没有结束,这样会导致同时出现两个请求交错 completion 😥
Easydict/Easydict/Swift/Service/OpenAI/BaseOpenAIService.swift
Line 129 in 30dd06d
output.mp4
使用场景
实现方案(可选)
已经有人提了这个问题 Cancel the async openAI.chatsStream(query: query) ,但这个库的维护者并没有响应,这里有个实现 longseespace/OpenAI@a290a1a ,或许我们将它 pick 到自己 fork 的库上 OpenAI 。
是否愿意提交 PR 实现该功能
The text was updated successfully, but these errors were encountered: