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

提高会话加载性能 #63

Merged
merged 1 commit into from
Jul 17, 2024
Merged

提高会话加载性能 #63

merged 1 commit into from
Jul 17, 2024

Conversation

Richasy
Copy link
Owner

@Richasy Richasy commented Jul 17, 2024

Close #59

描述

在引入 Tiktoken 后,由于错误的调用,会导致加载服务/助理时会将会话历史里的所有会话的TOKEN都计算一遍,造成巨大的延迟。

现在增加了限制,只会在加载当前会话时计算当前会话的token,不会再额外计算其它会话。

PR 类型

这个 PR 的目的是什么?

  • Bug 修复

PR 检查清单

请检查你的 PR 是否满足以下要求:

  • 应用成功启动
  • 文件头已经被添加至所有源文件中
  • 包含破坏式更新

@Richasy Richasy added the bug Something isn't working label Jul 17, 2024
@Richasy Richasy merged commit 166589b into main Jul 17, 2024
1 check passed
@Richasy Richasy deleted the richasy/enhancePerf branch July 17, 2024 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant