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:
Daniel.y 2025-11-20 18:10:49 +08:00 committed by GitHub
commit cc78e2df10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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])