mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
adding coverage for openrouter in exception mapping
This commit is contained in:
parent
9646c03fe5
commit
efbde50a03
6 changed files with 41 additions and 15 deletions
|
@ -592,6 +592,7 @@ def completion(
|
|||
model_response["choices"][0]["message"]["content"] = str(completion_response)
|
||||
model_response["created"] = time.time()
|
||||
model_response["model"] = model
|
||||
response = model_response
|
||||
elif model in litellm.vertex_text_models:
|
||||
import vertexai
|
||||
from vertexai.language_models import TextGenerationModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue