forked from phoenix/litellm-mirror
(feat) set default openrouter configs
This commit is contained in:
parent
c703fb2f2c
commit
b15682bc1f
2 changed files with 12 additions and 1 deletions
11
litellm/llms/openrouter.py
Normal file
11
litellm/llms/openrouter.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from typing import List
|
||||
|
||||
class OpenrouterConfig():
|
||||
"""
|
||||
Reference: https://openrouter.ai/docs#format
|
||||
|
||||
"""
|
||||
# OpenRouter-only parameters
|
||||
transforms: List[str] = []
|
||||
models: List[str] = []
|
||||
route: str = ''
|
|
@ -3962,7 +3962,7 @@ def convert_to_model_response_object(response_object: Optional[dict]=None, model
|
|||
raise Exception("Error in response object format")
|
||||
|
||||
if model_response_object is None:
|
||||
model_response_object = EmbeddingResponse()
|
||||
model_response_object = ImageResponse()
|
||||
|
||||
if "created" in response_object:
|
||||
model_response_object.created = response_object["created"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue