Merge pull request #2395 from Amrit75/issue-2394
issue-2394: use deployment variable instead of model for embeddings API call
This commit is contained in:
commit
cc78e2df10
1 changed files with 1 additions and 1 deletions
|
|
@ -172,6 +172,6 @@ async def azure_openai_embed(
|
|||
)
|
||||
|
||||
response = await openai_async_client.embeddings.create(
|
||||
model=model, input=texts, encoding_format="float"
|
||||
model=deployment, input=texts, encoding_format="float"
|
||||
)
|
||||
return np.array([dp.embedding for dp in response.data])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue