mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Merge 2dfdfefc7a into 74050e03c5
This commit is contained in:
commit
bbf7d70e04
2 changed files with 3 additions and 3 deletions
|
|
@ -120,7 +120,7 @@ def cost_per_character(
|
|||
prompt_cost = prompt_characters * model_info["input_cost_per_character"]
|
||||
except Exception as e:
|
||||
verbose_logger.debug(
|
||||
"litellm.litellm_core_utils.llm_cost_calc.google.py::cost_per_character(): Exception occured - %s\nDefaulting to None",
|
||||
"litellm.llms.vertex_ai.cost_calculator.py::cost_per_character(): Exception occured - %s\nDefaulting to None",
|
||||
e,
|
||||
)
|
||||
prompt_cost, _ = cost_per_token(
|
||||
|
|
@ -161,7 +161,7 @@ def cost_per_character(
|
|||
completion_cost = completion_characters * model_info["output_cost_per_character"]
|
||||
except Exception as e:
|
||||
verbose_logger.debug(
|
||||
"litellm.litellm_core_utils.llm_cost_calc.google.py::cost_per_character(): Exception occured - %s\nDefaulting to None",
|
||||
"litellm.llms.vertex_ai.cost_calculator.py::cost_per_character(): Exception occured - %s\nDefaulting to None",
|
||||
e,
|
||||
)
|
||||
_, completion_cost = cost_per_token(
|
||||
|
|
|
|||
|
|
@ -723,7 +723,7 @@ def test_vertex_ai_embedding_completion_cost(caplog):
|
|||
for item in captured_logs:
|
||||
print("\nitem:{}\n".format(item))
|
||||
if (
|
||||
"litellm.litellm_core_utils.llm_cost_calc.google.cost_per_character(): Exception occured "
|
||||
"litellm.llms.vertex_ai.cost_calculator.py::cost_per_character(): Exception occured "
|
||||
in item
|
||||
):
|
||||
raise Exception("Error log raised for calculating embedding cost")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue