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
Merge branch 'litellm_internal_staging' into litellm_veo_31_lite
mateo-berria007fa49e5e4
diff --cc litellm/llms/vertex_ai/videos/transformation.pyindex b925f82c886,25db3a673a1..e6e3c2739c1--- a/litellm/llms/vertex_ai/videos/transformation.py+++ b/litellm/llms/vertex_ai/videos/transformation.py@@@ -7,14 -7,13 +7,15 @@@ Based on: https://docs.cloud.google.comimport base64import time- from collections.abc import Mapping+ from collections.abc import Mapping, Sequence-from typing import TYPE_CHECKING, Any, Final, TypedDict, cast+from types import MappingProxyType- from typing import TYPE_CHECKING, Any, ClassVar, Final, cast++from typing import TYPE_CHECKING, Any, ClassVar, Final, TypedDict, castimport httpx- from httpx._types import RequestFiles+ from httpx._types import FileContent, RequestFiles+ from typing_extensions import ReadOnly+import litellmfrom litellm.constants import DEFAULT_GOOGLE_VIDEO_DURATION_SECONDSfrom litellm.images.utils import ImageEditRequestUtilsfrom litellm.llms.base_llm.videos.transformation import BaseVideoConfig@@@ -153,12 -161,9 +180,12 @@@ class VertexAIVideoConfig(BaseVideoConf- prompt → prompt (in instances)- input_reference → image (in instances)- size → aspectRatio (e.g., "1280x720" → "16:9")+ - size → resolution for models with resolution-tier pricing when inferable+ ("1280x720"/"720x1280" → "720p", "1920x1080"/"1080x1920" → "1080p");+ skipped if ``resolution`` is already set- seconds → durationSeconds (defaults to 4 seconds if not provided)"""- mapped_params: Final[dict[str, Any]] = {}+ mapped_params: Final[dict[str, object]] = {}# Map input_reference to image (will be processed in transform_video_create_request)if "input_reference" in video_create_optional_params: