-
Notifications
You must be signed in to change notification settings - Fork 115
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
是否支持event stream #333
Comments
怎么理解event stream, 可有具体的例子? |
https://github.com/r3labs/sse |
扫了下源代码, 明白你的意思了, 利用http chunked(分块传输编码) 模拟流式消息推送. 以前在websocket没出来之前用得挺多. |
@guonaihong 大佬,chatgpt目前使用的就是sse, 现有的gout代码在Debug请求时可正常输出流式消息。但如果加上bindbody时就会报503错误。急用的情况下,debug日志消息该如何输出到变量里呢? |
细看了文档,已解决, |
FsChat、OpenAI等都使用SSE协议(Server-Sent Events)来依次输出结果,因为大语言模型回复的都很慢,一般前端都使用的EventSource来实现打字效果。 可以使用下面方法来读取
|
@go-mixed 赞,我这个版本实现下sse的api。 |
No description provided.
The text was updated successfully, but these errors were encountered: