forked from phoenix/litellm-mirror
fix(llm_cost_calc/google.py): fix google embedding cost calculation
Fixes https://github.com/BerriAI/litellm/issues/4630
This commit is contained in:
parent
e3470d8e91
commit
2163434ff3
6 changed files with 133 additions and 18 deletions
|
@ -1275,7 +1275,7 @@ class Logging:
|
|||
f"Model={self.model}; cost={self.model_call_details['response_cost']}"
|
||||
)
|
||||
except litellm.NotFoundError as e:
|
||||
verbose_logger.error(
|
||||
verbose_logger.warning(
|
||||
f"Model={self.model} not found in completion cost map. Setting 'response_cost' to None"
|
||||
)
|
||||
self.model_call_details["response_cost"] = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue