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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix videos lint errors
Sameer Kankute31c3913f46df
diff --git a/litellm/llms/vertex_ai/videos/transformation.py b/litellm/llms/vertex_ai/videos/transformation.pyindex 0f7b71c9262..aad29d25122 100644--- a/litellm/llms/vertex_ai/videos/transformation.py+++ b/litellm/llms/vertex_ai/videos/transformation.py@@ -12,6 +12,8 @@ from typing import TYPE_CHECKING, Any, Dict, Optional, Tuple, Unionimport httpxfrom httpx._types import RequestFiles+from litellm.constants import DEFAULT_GOOGLE_VIDEO_DURATION_SECONDS+from litellm.images.utils import ImageEditRequestUtilsfrom litellm.llms.base_llm.videos.transformation import BaseVideoConfigfrom litellm.llms.vertex_ai.common_utils import (_convert_vertex_datetime_to_openai_datetime,@@ -23,8 +25,6 @@ from litellm.types.videos.utils import (encode_video_id_with_provider,extract_original_video_id,)-from litellm.images.utils import ImageEditRequestUtils-from litellm.constants import DEFAULT_GOOGLE_VIDEO_DURATION_SECONDSif TYPE_CHECKING:from litellm.litellm_core_utils.litellm_logging import Logging as _LiteLLMLoggingObj@@ -172,10 +172,16 @@ class VertexAIVideoConfig(BaseVideoConfig, VertexBase):"""# Extract Vertex AI parameters using safe helpers from VertexBase# Use safe_get_* methods that don't mutate litellm_params dict- litellm_params = litellm_params or {}+ litellm_params_dict: Dict[str, Any] = (+ litellm_params.model_dump() if litellm_params else {}+ )- vertex_project = VertexBase.safe_get_vertex_ai_project(litellm_params=litellm_params)- vertex_credentials = VertexBase.safe_get_vertex_ai_credentials(litellm_params=litellm_params)+ vertex_project = VertexBase.safe_get_vertex_ai_project(+ litellm_params=litellm_params_dict+ )+ vertex_credentials = VertexBase.safe_get_vertex_ai_credentials(+ litellm_params=litellm_params_dict+ )# Get access token from Vertex credentialsaccess_token, project_id = self.get_access_token(