mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix: correct module path in vertex_ai cost_per_character debug logs
This commit is contained in:
parent
4fd7a73ef5
commit
2dfdfefc7a
2 changed files with 3 additions and 3 deletions
|
|
@ -114,7 +114,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(
|
||||
|
|
@ -153,7 +153,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(
|
||||
|
|
|
|||
|
|
@ -736,7 +736,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