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

feat: 🎸 allow user cancel run action #48

Closed
wants to merge 4 commits into from

Conversation

Leizhenpeng
Copy link
Contributor

@Leizhenpeng Leizhenpeng commented Mar 14, 2023

问题

类似 ChatGPT 的交互界面,
有时候答案出现几个字后,用户可能会立刻发现这些答案不符合自己的需求,想要进行修改。
但是此时用户必须等待应用程序执行结束才能进行修改。

为了解决这个问题,我们在这里新增了“取消执行”功能。

新功能

现在,用户可以点击“loading”按钮,以结束应用程序的继续接收流消息,并终止问答过程。

@vercel
Copy link

vercel bot commented Mar 14, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @futantan on Vercel.

@futantan first needs to authorize it.

@Leizhenpeng Leizhenpeng marked this pull request as ready for review March 14, 2023 00:36
@Leizhenpeng
Copy link
Contributor Author

is there any suggestion about thie feature ? 😂

@futantan
Copy link
Owner

sorry I forget to review this PR, need to test if the cancel can affect the DONE event, which will activate the license key from user.
Will test it soon...

@Leizhenpeng
Copy link
Contributor Author

When the server receives the chat request from the client, it will call the lemon interface to consume the number of user purchases.

Since the server has already performed the openai request operation, the full fee will still be incurred.

Here only the client SSE reception is suspended, and the user license should still be consumed

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

Successfully merging this pull request may close these issues.

🚀 功能改善 - 允许用户取消执行动作
2 participants