Skip to content

修复计算token过程中的内存泄漏#115

Merged
Richasy merged 2 commits into
mainfrom
richasy/fixMemoryUsage
May 8, 2025
Merged

修复计算token过程中的内存泄漏#115
Richasy merged 2 commits into
mainfrom
richasy/fixMemoryUsage

Conversation

@Richasy
Copy link
Copy Markdown
Owner

@Richasy Richasy commented May 8, 2025

描述

Tiktoken encoder 应为单例,否则会泄露

PR 类型

这个 PR 的目的是什么?

  • Bug 修复

PR 检查清单

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

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

@Richasy Richasy added the bug Something isn't working label May 8, 2025
@Richasy Richasy merged commit c34ba17 into main May 8, 2025
1 check passed
@Richasy Richasy deleted the richasy/fixMemoryUsage branch May 8, 2025 08:21
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

Development

Successfully merging this pull request may close these issues.

1 participant