Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature] Support SSE ( Server-Sent Events) #1098

Closed
libli opened this issue Apr 26, 2023 · 3 comments
Closed

[Feature] Support SSE ( Server-Sent Events) #1098

libli opened this issue Apr 26, 2023 · 3 comments

Comments

@libli
Copy link

libli commented Apr 26, 2023

Is your feature request related to a problem? Please describe.
如果支持SSE的话,在网页上的体验会更好,更类似ChatGPT

Describe the solution you'd like
支持发送SSE请求,修改一下Accept值即可,如果后台不支持,会自动转成json响应

Describe alternatives you've considered
有蛮多客户端已经支持了。

Additional context
Add any other context or screenshots about the feature request here.

@Yidadaa
Copy link
Collaborator

Yidadaa commented Apr 26, 2023

你用啥部署的,为什么你会觉得不支持 sse?

@Yidadaa
Copy link
Collaborator

Yidadaa commented Apr 26, 2023

#209 #365 #386 #712

@Yidadaa Yidadaa closed this as completed Apr 26, 2023
@libli
Copy link
Author

libli commented Apr 26, 2023

哦,那应该是我的nginx反向代理没处理这个,我改一下。非常抱歉。
因为我是nginx处理https请求再反代给这个docker的。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants