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数据的统计,显示翻译消耗的资费 #26

Open
clark874 opened this issue Mar 4, 2023 · 4 comments
Open

加入官方token数据的统计,显示翻译消耗的资费 #26

clark874 opened this issue Mar 4, 2023 · 4 comments
Labels
good first issue Good for newcomers

Comments

@clark874
Copy link

clark874 commented Mar 4, 2023

如题,官方发布了一个接口使用token的统计工具,不知道能否整合进去,每次翻译前显示一下大概要消耗的资费。

感谢作者!

@yihong0618
Copy link
Owner

应该可以,之后会看下

@yihong0618 yihong0618 added the good first issue Good for newcomers label Mar 4, 2023
@bobchao
Copy link

bobchao commented Mar 4, 2023

純粹提點想法:翻譯兩本書之後,我目前看起來在中文(zh-TW)下 prompt 跟 completion 大概是 1:2 到 1:3。雖然來源語言可以用 open ai 的 token 計算工具直接算出精準答案,但 completion 就只能猜了,且也許每個來源+目標語言的組合都會大幅影響這個比例關係,可能不是很好處理。

(但也許就先限縮僅幫忙計算原文狀況,加註說明說目的語言的結果會另計費用即可)

@yihong0618
Copy link
Owner

@bobchao That's OK

@jeffery9
Copy link
Contributor

jeffery9 commented Mar 8, 2023

implemented in #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants