You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/develop/langchain.md
+3-19Lines changed: 3 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -316,31 +316,15 @@ for doc in results:
316
316
317
317
## Using Azure OpenAI models
318
318
319
-
If you're using Azure OpenAI in Foundry Models or Foundry Models service with OpenAI models with `langchain-azure-ai` package, you might need to use `api_version` parameter to selecta specific API version. The following example shows how to connect to an Azure OpenAI in Foundry Models deployment:
319
+
If you're using Azure OpenAI models with `langchain-azure-ai` package, use the following URL:
320
320
321
321
```python
322
322
from langchain_azure_ai.chat_models import AzureAIChatCompletionsModel
> Check which is the API version that your deployment is using. Using a wrong `api_version` or one not supported by the model results in a `ResourceNotFound` exception.
333
-
334
-
If the deployment is hosted in Azure AI Services, you can use the Foundry Models service:
335
-
336
-
```python
337
-
from langchain_azure_ai.chat_models import AzureAIChatCompletionsModel
0 commit comments