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

关于Claude和gemini的token处理 #92

Open
Violettttee opened this issue Jan 1, 2025 · 1 comment
Open

关于Claude和gemini的token处理 #92

Violettttee opened this issue Jan 1, 2025 · 1 comment

Comments

@Violettttee
Copy link

想请问下看代码有看到gpt是用tiktoken来处理的,那对于claude和gemini也是使用4o的tiktoken吗?(代码里好像没有看到这部分)

@bys0318
Copy link
Member

bys0318 commented Jan 2, 2025

因为claude没有提供它们的tokenizer,我们在测试时也使用4o的tiktoken作截断,并使用二分查找找到按多少长度截断时不会报错(输入长度超过模型窗口长度会报错)。gemini我们目前还没有评测。

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

2 participants