forked from phoenix/litellm-mirror
(fix) vertexai detect code_chat and code_text llms as vertex
This commit is contained in:
parent
512a1637eb
commit
81f608dd34
1 changed files with 6 additions and 1 deletions
|
@ -1674,7 +1674,12 @@ def get_llm_provider(model: str, custom_llm_provider: Optional[str] = None, api_
|
|||
elif model in litellm.maritalk_models:
|
||||
custom_llm_provider = "maritalk"
|
||||
## vertex - text + chat models
|
||||
elif model in litellm.vertex_chat_models or model in litellm.vertex_text_models:
|
||||
elif(
|
||||
model in litellm.vertex_chat_models or
|
||||
model in litellm.vertex_code_chat_models or
|
||||
model in litellm.vertex_text_models or
|
||||
model in litellm.vertex_code_text_models
|
||||
):
|
||||
custom_llm_provider = "vertex_ai"
|
||||
## ai21
|
||||
elif model in litellm.ai21_models:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue