This commit is contained in:
Paul Gauthier 2025-05-07 20:28:46 -07:00
parent aaacee5d4d
commit 0c236d0035

View file

@ -1989,7 +1989,7 @@ class Coder:
try:
# Try and use litellm's built in cost calculator. Seems to work for non-streaming only?
cost = litellm.completion_cost(completion_response=completion)
except ValueError:
except Exception:
cost = 0
if not cost: