diff --git a/lightrag/llm/azure_openai.py b/lightrag/llm/azure_openai.py index c72826f8..98437ca8 100644 --- a/lightrag/llm/azure_openai.py +++ b/lightrag/llm/azure_openai.py @@ -172,6 +172,6 @@ async def azure_openai_embed( ) response = await openai_async_client.embeddings.create( - model=deployment, input=texts, encoding_format="float" + model=model or deployment, input=texts, encoding_format="float" ) return np.array([dp.embedding for dp in response.data])