Skip to content

Commit 0d8c998

Browse files
authored
Update llama-index.md
1 parent 28a79d5 commit 0d8c998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-studio/how-to/develop/llama-index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ llm = AzureAICompletionsModel(
130130

131131
### Azure OpenAI models and Azure AI model infernece service
132132

133-
If you are using Azure OpenAI models or [Azure AI model inference service](../../ai-services/model-endpoint.md), ensure you have at least version `0.2.4` of the LlamaIndex integration. Use `api_version` parameter in case you need to select a specific `api_version`. For the [Azure AI model inference service](../../ai-services/model-endpoint.md), you need to pass `model` parameter:
133+
If you are using Azure OpenAI models or [Azure AI model inference service](../../ai-services/model-endpoint.md), ensure you have at least version `0.2.4` of the LlamaIndex integration. Use `api_version` parameter in case you need to select a specific `api_version`. For the [Azure AI model inference service](../../ai-services/model-endpoint.md), you need to pass `model_name` parameter:
134134

135135
```python
136136
from llama_index.llms.azure_inference import AzureAICompletionsModel
137137
138138
llm = AzureAICompletionsModel(
139139
endpoint=os.environ["AZURE_INFERENCE_ENDPOINT"],
140140
credential=os.environ["AZURE_INFERENCE_CREDENTIAL"],
141-
model="gpt-4o",
141+
model_name="gpt-4o",
142142
api_version="2024-05-01-preview",
143143
)
144144
```

0 commit comments

Comments
 (0)