mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
except
This commit is contained in:
parent
aaacee5d4d
commit
0c236d0035
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue