forked from phoenix/litellm-mirror
(feat) aembedding: return raw openai response
This commit is contained in:
parent
10d5ab8643
commit
1081d4c766
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue