mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
refactor(vertex): simplify model garden api base check
This commit is contained in:
parent
90c089582b
commit
360a69b6ef
1 changed files with 1 additions and 5 deletions
|
|
@ -121,11 +121,7 @@ class VertexAIModelGardenModels(VertexBase):
|
|||
stream: bool = optional_params.get("stream", False) or False
|
||||
optional_params["stream"] = stream
|
||||
|
||||
if api_base is not None:
|
||||
# User provided a custom api_base (e.g. Model Garden mg-endpoint URL).
|
||||
# Use it directly — OpenAILikeChatHandler appends /chat/completions.
|
||||
pass
|
||||
else:
|
||||
if api_base is None:
|
||||
api_base = create_vertex_url(
|
||||
vertex_location=vertex_location or "us-central1",
|
||||
vertex_project=vertex_project or project_id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue