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

点击暂停按钮没有反应 #181

Open
dqzboy opened this issue May 5, 2024 · 2 comments
Open

点击暂停按钮没有反应 #181

dqzboy opened this issue May 5, 2024 · 2 comments
Labels

Comments

@dqzboy
Copy link

dqzboy commented May 5, 2024

在页面点击暂停回答没有任何反应,程序日志显示其实已经超时了,但是还是一直在转圈还不能暂停,如图
PixPin_2024-05-05_12-27-01

@zmh-program
Copy link
Member

这是因为 manager/chat 实现方法暂停其实是在流式响应的中途通过同步阻塞实现的,所以在请求发起之前会一直阻塞,不会处理stop signal,此时暂停是有问题的,后期我打算将其独立于一个goroutine中以快速暂停响应。

@dqzboy
Copy link
Author

dqzboy commented May 10, 2024

强👍

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

No branches or pull requests

2 participants