AIChatWeb icon indicating copy to clipboard operation
AIChatWeb copied to clipboard

【疑问】你们这个项目有个token的参数,这个和模型之间的计算公式并未说明。

Open bbb3n opened this issue 1 year ago • 3 comments

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

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

如何复现 如上

截图

一些必要的信息

bbb3n avatar Oct 07 '23 04:10 bbb3n

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

Issues-translate-bot avatar Oct 07 '23 04:10 Issues-translate-bot

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

vtea avatar Jan 11 '24 02:01 vtea

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.

Issues-translate-bot avatar Jan 11 '24 02:01 Issues-translate-bot