use deployment variable which extracted value from .env file or have default value
This commit is contained in:
parent
ecea93992a
commit
30e86fa331
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