-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
如何实现打断输出功能? #248
Labels
enhancement
New feature or request
Comments
提议的 API 是什么样的? |
这个肯定你们更专业一些。。首先你们已经实现的是 比如, |
最好能提供进一步的信息,比如你现在的系统中是怎么做的,类似竞品是怎么做的?你期待的 API 是什么样的用起来会比较舒服? |
感谢回复。
|
好的,非常感谢! 我将参考你的建议以及提供的信息,最终方案后续 RFC 会明确。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需求动机
当用户不想继续等待大模型的流式输出结果时(比如回答答案过长、或用户输错想重新输入),打断大模型当前的输出是常见的需求。
提议的 API 是什么样的?
期待类似pro-chat组件的设计,给useXChat加一个返回值onCancel,调用该函数时,终止当前的sse调用,并停止对useXChat返回的messages和parsedMessages进行更新
The text was updated successfully, but these errors were encountered: