fix(aimage_generation): fix response type

This commit is contained in:
Krrish Dholakia 2023-12-30 12:53:24 +05:30
parent 750432457b
commit a6719caebd

View file

@ -642,7 +642,7 @@ class OpenAIChatCompletion(BaseLLM):
additional_args={"complete_input_dict": data},
original_response=stringified_response,
)
return convert_to_model_response_object(response_object=json.loads(stringified_response), model_response_object=model_response, response_type="embedding") # type: ignore
return convert_to_model_response_object(response_object=json.loads(stringified_response), model_response_object=model_response, response_type="image_generation") # type: ignore
except Exception as e:
## LOGGING
logging_obj.post_call(