mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
perf(google_genai): read only the two location keys instead of dumping every param
This commit is contained in:
parent
b67dbfa948
commit
9d40dc7b26
1 changed files with 6 additions and 1 deletions
|
|
@ -200,7 +200,12 @@ class GenerateContentHelper:
|
|||
from litellm.llms.vertex_ai.vertex_llm_base import VertexBase
|
||||
|
||||
explicit_vertex_location: Final = VertexBase.explicit_vertex_ai_location(
|
||||
MappingProxyType(litellm_params.model_dump(exclude_none=True))
|
||||
MappingProxyType(
|
||||
{
|
||||
key: getattr(litellm_params, key, None)
|
||||
for key in ("vertex_location", "vertex_ai_location")
|
||||
}
|
||||
)
|
||||
)
|
||||
vertex_location_params: Final = (
|
||||
MappingProxyType({"vertex_location": explicit_vertex_location})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue