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 and mypy

Sameer Kankute2834659f1988
diff --git a/litellm/llms/gemini/videos/transformation.py b/litellm/llms/gemini/videos/transformation.py
index 99feb8eb6b5..c7116940b22 100644
--- a/litellm/llms/gemini/videos/transformation.py
+++ b/litellm/llms/gemini/videos/transformation.py
@@ -343,7 +343,7 @@ class GeminiVideoConfig(BaseVideoConfig):
model=model,
)
- usage_data = {}
+ usage_data: Dict[str, Any] = {}
if request_data:
parameters = request_data.get("parameters", {})
duration = (
diff --git a/litellm/llms/vertex_ai/videos/transformation.py b/litellm/llms/vertex_ai/videos/transformation.py
index 83bd9eda674..ed6176cef05 100644
--- a/litellm/llms/vertex_ai/videos/transformation.py
+++ b/litellm/llms/vertex_ai/videos/transformation.py
@@ -363,7 +363,7 @@ class VertexAIVideoConfig(BaseVideoConfig, VertexBase):
id=video_id, object="video", status="processing", model=model
)
- usage_data = {}
+ usage_data: Dict[str, Any] = {}
if request_data:
parameters = request_data.get("parameters", {})
duration = (
diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py
index 50dc3c6c6ec..0acbe901300 100644
--- a/tests/test_litellm/test_utils.py
+++ b/tests/test_litellm/test_utils.py
@@ -514,6 +514,7 @@ def validate_model_cost_values(model_data, exceptions=None):
"output_cost_per_pixel",
"input_cost_per_second",
"output_cost_per_second",
+ "output_cost_per_second_1080p",
"input_cost_per_query",
"input_cost_per_request",
"input_cost_per_audio_token",
@@ -720,6 +721,7 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
"output_cost_per_image_token_batches": {"type": "number"},
"output_cost_per_pixel": {"type": "number"},
"output_cost_per_second": {"type": "number"},
+ "output_cost_per_second_1080p": {"type": "number"},
"output_cost_per_token": {"type": "number"},
"output_cost_per_token_above_128k_tokens": {"type": "number"},
"output_cost_per_token_above_200k_tokens": {"type": "number"},