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的参数,这个和模型之间的计算公式并未说明。 #62

Open
bbb3n opened this issue Oct 7, 2023 · 3 comments

Comments

@bbb3n
Copy link

bbb3n commented Oct 7, 2023

  • [ x ] 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • [ x ] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • [ x ] 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
你们这个项目有个token的参数,这个和模型之间的计算公式没有说明。
比如:
promptTokens = 10 ; completionTokens = 20 ;倍率设置为1
这个tokens参数就直接扣 ( 20 + 10 ) * 1 吗?
因为 prompt 和 completion 之间本身就有 成本 倍率。

如何复现
如上

截图

一些必要的信息

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Question] Your project has a token parameter, but the calculation formula between this and the model is not explained.

  • [ x ] I confirm that I have searched for the feedback issue in FAQ. No solution found;
  • [ x ] I confirm that I have searched the Issues list (including those that have been Closed) for this feedback issue, but no answer has been found.
  • [ x ] I confirm that I have searched for the feedback issue in Vercel usage tutorial , no answer found.

Describe the problem
Your project has a token parameter, but the calculation formula between this and the model is not explained.
for example:
promptTokens = 10; completionTokens = 20; set the magnification to 1
Is this tokens parameter directly deducted from (20 + 10) * 1?
Because there is a cost multiplier between prompt and completion.

How ​​to reproduce
As above

screenshot
none

Some necessary information
none

@vtea
Copy link

vtea commented Jan 11, 2024

计算方式与openai一致,怎么计算要看你怎么配置倍率,1倍就1tonkens

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The calculation method is the same as openai. How to calculate it depends on how you configure the magnification. 1 times is 1 tonkens.

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

3 participants