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

Token统计可以计算文件搜索时使用的token数量吗 #40

Closed
HappyDitto opened this issue Jun 12, 2024 · 3 comments
Closed

Token统计可以计算文件搜索时使用的token数量吗 #40

HappyDitto opened this issue Jun 12, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@HappyDitto
Copy link

现有的token工具好像只能统计实际文字所使用的token,但搜索文件使用的token没有被统计。有什么办法统计搜索文件使用的token数量吗?

@Lambdua
Copy link
Owner

Lambdua commented Jun 13, 2024

你是指使用assistant api的文件检索消耗的token么?

@HappyDitto
Copy link
Author

你是指使用assistant api的文件检索消耗的token么?

对的

@Lambdua
Copy link
Owner

Lambdua commented Jun 13, 2024

目前这个并不是透明的,官方好像并没有给出很透明的解析方案. 参考链接
assistant retrieval api 价格分为存储计费,和使用的对应模型tokens计费.

@Lambdua Lambdua added the help wanted Extra attention is needed label Jun 13, 2024
@Lambdua Lambdua closed this as completed Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants