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]

add VertexMultimodalEmbeddingRequest type

Ishaan Jaffdd00cf2a970a
diff --git a/litellm/types/llms/vertex_ai.py b/litellm/types/llms/vertex_ai.py
index 6758c356f57..5586d4861c2 100644
--- a/litellm/types/llms/vertex_ai.py
+++ b/litellm/types/llms/vertex_ai.py
@@ -1,6 +1,6 @@
import json
from enum import Enum
-from typing import Any, Dict, List, Literal, Optional, TypedDict, Union
+from typing import Any, Dict, List, Literal, Optional, Tuple, TypedDict, Union
from typing_extensions import (
Protocol,
@@ -305,3 +305,18 @@ class ResponseTuningJob(TypedDict):
]
createTime: Optional[str]
updateTime: Optional[str]
+
+
+class InstanceVideo(TypedDict, total=False):
+ gcsUri: str
+ videoSegmentConfig: Tuple[float, float, float]
+
+
+class Instance(TypedDict, total=False):
+ text: str
+ image: Dict[str, str]
+ video: InstanceVideo
+
+
+class VertexMultimodalEmbeddingRequest(TypedDict, total=False):
+ instances: List[Instance]