mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(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:
|
else:
|
||||||
openai_aclient = client
|
openai_aclient = client
|
||||||
response = await openai_aclient.embeddings.create(**data) # type: ignore
|
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:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
def embedding(self,
|
def embedding(self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue