agentchat.conversable_agent.get_total_usage() total_cost not working for gpt-3.5-turbo-0125 #2333
-
I had been using get_total_usage and I noticed that it always shows only up to 5 digits after 0, for example: 0.00698. But when I use gpt-3.5-turbo-0125 this is a problem, as I sometimes get a cost of 0 See here: "gpt-3.5-turbo-0125": { So my question here, is how to disable this trimming and get full value? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
cc @kevin666aa It could be due to caching so you are not hitting the LLM. You can disable cache in your llm_config by setting Related to #2133 |
Beta Was this translation helpful? Give feedback.
Hello @WebsheetPlugin, can you update the package and see if cost for gpt-3.5-turbo-0125 is still zero? It should be fixed.
When printing, we are rounding to 5 digits (
print_usage_summary
). But if you access the numbers through dict, we don't trim the cost.