Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion litellm/llms/vertex_ai/vertex_embeddings/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

from .types import *

_MAPPED_SPECIAL_AUTH_PARAMS = {
"project": "vertex_project",
"region_name": "vertex_location",
}


class VertexAITextEmbeddingConfig(BaseModel):
"""
Expand Down Expand Up @@ -89,7 +94,7 @@ def get_mapped_special_auth_params(self) -> dict:
"""
Common auth params across bedrock/vertex_ai/azure/watsonx
"""
return {"project": "vertex_project", "region_name": "vertex_location"}
return _MAPPED_SPECIAL_AUTH_PARAMS

def map_special_auth_params(self, non_default_params: dict, optional_params: dict):
mapped_params = self.get_mapped_special_auth_params()
Expand Down