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

👑 [需求] 流式支持,不是流式返回后收集所有响应再效果上实现打字 #182

Open
beeant0512 opened this issue Apr 26, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@beeant0512
Copy link

🥰 需求描述

看了现有的都是在接收完流式响应的内容后,前端伪装出的打字效果,或许是我的使用方式不对

想要的就是收到一个流式响应后实时的追加消息上去,或者提供更新消息的API

🧐 解决方案

🚑 其他信息

@ONLY-yours ONLY-yours added the documentation Improvements or additions to documentation label Apr 28, 2024
@ONLY-yours
Copy link
Collaborator

ONLY-yours commented Apr 28, 2024

@beeant0512 直接返回一个 流式的 readable response 就好了,参考 https://pro-chat.antdigital.dev/guide/sse 最下方还有 demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants