(feat) set default openrouter configs

This commit is contained in:
ishaan-jaff 2023-12-18 08:55:51 +05:30
parent c703fb2f2c
commit b15682bc1f
2 changed files with 12 additions and 1 deletions

View file

@ -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"]