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

chore: 优化 Stream 输出流方式 #51

Closed
wants to merge 3 commits into from
Closed

Conversation

ONLY-yours
Copy link
Collaborator

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

Copy link

github-actions bot commented Jan 19, 2024

🎊 PR Preview 6aabaa6 has been successfully built and deployed to https://ant-design-pro-chat-preview-pr-51.surge.sh

🕐 Build time: 66.938s

🤖 By surge-preview

@ONLY-yours ONLY-yours changed the title Prof/text motion chore: 优化 Stream 输出流方式 Jan 19, 2024
@ONLY-yours
Copy link
Collaborator Author

@arvinxx 我看你在 onFinish 的时候 update 了下好像是为了组合图片之类的,在 ProChat 里似乎就不需要了,你看看有什么问题么

 onFinish: async () => {
        stopAnimation();
        if (outputQueue.length > 0 && !isFunctionCall) {
          await startAnimation(15);
        }
      },

@arvinxx
Copy link
Collaborator

arvinxx commented Jan 22, 2024

@arvinxx 我看你在 onFinish 的时候 update 了下好像是为了组合图片之类的,在 ProChat 里似乎就不需要了,你看看有什么问题么

 onFinish: async () => {
        stopAnimation();
        if (outputQueue.length > 0 && !isFunctionCall) {
          await startAnimation(15);
        }
      },

不是。还是需要的。这个是让结束输出时,速度加快几倍。否则哪怕token输出完了,动画还是慢吞吞在跑

@ONLY-yours
Copy link
Collaborator Author

achieved in #103

@ONLY-yours ONLY-yours closed this Mar 6, 2024
@ONLY-yours ONLY-yours deleted the prof/textMotion branch March 20, 2024 05:38
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