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

停止序列 #6

Open
qisawO3 opened this issue Aug 29, 2023 · 1 comment
Open

停止序列 #6

qisawO3 opened this issue Aug 29, 2023 · 1 comment

Comments

@qisawO3
Copy link

qisawO3 commented Aug 29, 2023

请问如果我想给GPT加个停止序列,我应该在哪里添加呢?

@icecoins
Copy link
Owner

你的意思是增加一个停止按钮,点击后停止当前的输出?
可以自行添加一个停止按钮,然后参考tcp挥手,APP发出停止通知 -> 服务器断开和open的连接,返回结束标志 -> APP结束输出。
或是APP直接停止输出,然后给服务器发送一个停止通知。
这些交互都应该在websocket中完成。
因为我在明年之前都很忙,同时这个功能写起来比较消耗时间,所以目前你可能需要克隆项目,然后自行编写代码。

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

No branches or pull requests

2 participants