There was an error while loading. Please reload this page.
1 parent b910339 commit f10dd7aCopy full SHA for f10dd7a
src/tot/models.py
@@ -41,5 +41,5 @@ def gpt_usage(backend="gpt-4"):
41
if backend == "gpt-4":
42
cost = completion_tokens / 1000 * 0.06 + prompt_tokens / 1000 * 0.03
43
elif backend == "gpt-3.5-turbo":
44
- cost = (completion_tokens + prompt_tokens) / 1000 * 0.0002
45
- return {"completion_tokens": completion_tokens, "prompt_tokens": prompt_tokens, "cost": cost}
+ cost = completion_tokens / 1000 * 0.002 + prompt_tokens / 1000 * 0.0015
+ return {"completion_tokens": completion_tokens, "prompt_tokens": prompt_tokens, "cost": cost}
0 commit comments