fix(vertex_ai_partner.py): add /chat/completion codestral support

Closes https://github.com/BerriAI/litellm/issues/4984
This commit is contained in:
Krrish Dholakia 2024-08-01 16:12:05 -07:00
parent f04160df46
commit 6e163d3c8a
5 changed files with 30 additions and 5 deletions

View file

@ -2074,7 +2074,11 @@ def completion(
timeout=timeout,
client=client,
)
elif model.startswith("meta/") or model.startswith("mistral"):
elif (
model.startswith("meta/")
or model.startswith("mistral")
or model.startswith("codestral")
):
model_response = vertex_partner_models_chat_completion.completion(
model=model,
messages=messages,