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

前端没有打字机效果 #8

Open
abigkeep opened this issue Apr 17, 2023 · 4 comments
Open

前端没有打字机效果 #8

abigkeep opened this issue Apr 17, 2023 · 4 comments

Comments

@abigkeep
Copy link

前端后端都是在windows本地部署,本地没有安装nginx,但前端没有打字机效果

@zengwanning
Copy link

me too!

@Gary2018X
Copy link

确实奇怪 我把请求那部分的代码换成了chatgpt-web的代码也不行 我用chatgpt-web的前端+相同的后端是可以的

@solike
Copy link

solike commented Jun 3, 2023

确实

@5102a
Copy link

5102a commented Jul 8, 2023

其实是支持的,如果要有打字机效果有下面几种方式可以实现:

  1. 纯前端实现:延迟/异步打印字符
  2. 接口流式输出:取决于每次chunk大小,小chunk看起来效果明显,我看后端实现流式输出了,只是一次返回的chunk比较大,可以试试长内容场景下也是会分几次输出,只是不太打字机。或者也可以按行读取输出

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

5 participants