From 1081d4c7665d9b81bc2a0a74b36d461382912783 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 30 Nov 2023 20:02:47 -0800 Subject: [PATCH] (feat) aembedding: return raw openai response --- litellm/llms/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/openai.py b/litellm/llms/openai.py index 888f0f008..29934d130 100644 --- a/litellm/llms/openai.py +++ b/litellm/llms/openai.py @@ -340,7 +340,7 @@ class OpenAIChatCompletion(BaseLLM): else: openai_aclient = client response = await openai_aclient.embeddings.create(**data) # type: ignore - return convert_to_model_response_object(response_object=json.loads(response.model_dump_json()), model_response_object=model_response, response_type="embedding") + return response except Exception as e: raise e def embedding(self,