Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(tests): update deprecated model refs in test_completion_cost

yuneng-jiang5dab326d0c24
diff --git a/tests/local_testing/test_completion_cost.py b/tests/local_testing/test_completion_cost.py
index dd060a56d20..43cb236ad47 100644
--- a/tests/local_testing/test_completion_cost.py
+++ b/tests/local_testing/test_completion_cost.py
@@ -738,10 +738,10 @@ def test_vertex_ai_embedding_completion_cost(caplog):
text = "The quick brown fox jumps over the lazy dog."
input_tokens = litellm.token_counter(
- model="vertex_ai/textembedding-gecko", text=text
+ model="vertex_ai/text-embedding-004", text=text
)
- model_info = litellm.get_model_info(model="vertex_ai/textembedding-gecko")
+ model_info = litellm.get_model_info(model="vertex_ai/text-embedding-004")
print("\nExpected model info:\n{}\n\n".format(model_info))
@@ -749,7 +749,7 @@ def test_vertex_ai_embedding_completion_cost(caplog):
## CALCULATED COST
calculated_input_cost, calculated_output_cost = cost_per_token(
- model="textembedding-gecko",
+ model="text-embedding-004",
custom_llm_provider="vertex_ai",
prompt_tokens=input_tokens,
call_type="aembedding",
@@ -824,7 +824,7 @@ async def test_completion_cost_hidden_params(sync_mode):
def test_vertex_ai_gemini_predict_cost():
- model = "gemini-1.5-flash"
+ model = "gemini-2.0-flash"
messages = [{"role": "user", "content": "Hey, hows it going???"}]
predictive_cost = completion_cost(model=model, messages=messages)