mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +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:
|
||||||
# Try and use litellm's built in cost calculator. Seems to work for non-streaming only?
|
# Try and use litellm's built in cost calculator. Seems to work for non-streaming only?
|
||||||
cost = litellm.completion_cost(completion_response=completion)
|
cost = litellm.completion_cost(completion_response=completion)
|
||||||
except ValueError:
|
except Exception:
|
||||||
cost = 0
|
cost = 0
|
||||||
|
|
||||||
if not cost:
|
if not cost:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue