alibaba / ChatUI

The UI design language and React library for Conversational UI
https://chatui.io
MIT License
2.61k stars 277 forks source link

SSE流式响应处理 #139

Closed Malebazi closed 4 months ago

Malebazi commented 4 months ago

image

代码注释中有这样一句话:“当需要增加header或者websocket、sse等特殊形式消息处理时,可以返回Promise,假如返回Promise对象是空对象,则不会展示消息内容”,然而文档中并没有对应描述。

由于没法加群,只能在issue里提了。。。有大佬知道怎么上SSE嘛?

Malebazi commented 4 months ago

搞定。希望文档能更完善。

BoBoooooo commented 4 months ago

搞定。希望文档能更完善。

遇到同样的问题了,请教下

Malebazi commented 4 months ago

chatui pro的promise里面用微软azure的fetch-sercer-events项目(应该是叫这个)

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月29日 17:41 | | 收件人 | @.> | | 抄送至 | @.>、State @.> | | 主题 | Re: [alibaba/ChatUI] SSE流式响应处理 (Issue #139) |

搞定。希望文档能更完善。

遇到同样的问题了,请教下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

Malebazi commented 4 months ago

https://github.com/Azure/fetch-event-source 这个

在 2024-04-29 17:41:09,"BoBoooooo" @.***> 写道:

搞定。希望文档能更完善。

遇到同样的问题了,请教下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

Malebazi commented 4 months ago

image 大概这样