[PR #3160] [CLOSED] Update Azure AI integration for API key and model #3232

Closed
opened 2026-06-05 18:21:30 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3160
Author: @teerthrajverma01
Created: 3/17/2026
Status: Closed

Base: mainHead: patch-1


📝 Commits (1)

  • b312cb4 Update Azure AI integration for API key and model

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 src/oss/python/integrations/providers/azure_ai.mdx (+4 -4)

📄 Description


Overview
Updated Azure AI chat model integration documentation to use the current recommended AzureAIOpenAIApiChatModel class instead of the deprecated
AzureAIChatCompletionsModel, and updated environment variable references accordingly.

Type of change

Type: Update existing documentation / Fix outdated content

Related issues/PRs

  • GitHub issue: (if applicable)

  • Feature PR: (if applicable)

  • Linear issue:

  • Slack thread:

Checklist

(Internal team members only / optional): Create a preview deployment as necessary using the
https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml

Additional notes

Summary of Changes:

  • Replaced deprecated class: Changed AzureAIChatCompletionsModel to AzureAIOpenAIApiChatModel
    • The old class uses Azure AI Inference beta SDK which is deprecated and will be retired on May 30, 2026
    • The new class uses the stable OpenAI-compatible API with OpenAI SDK
  • Updated environment variables: Aligned environment variable references with the new class requirements
  • Import statements: Updated import paths to reflect the current recommended approach

Rationale:

The AzureAIChatCompletionsModel class is deprecated (as of version 1.1.0) and users should migrate to AzureAIOpenAIApiChatModel. This update ensures
documentation reflects current best practices and prevents users from implementing code that will break after May 30, 2026.



🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3160 **Author:** [@teerthrajverma01](https://github.com/teerthrajverma01) **Created:** 3/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`b312cb4`](https://github.com/langchain-ai/docs/commit/b312cb4fac33b64367d777f5cb31493b8635058c) Update Azure AI integration for API key and model ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/python/integrations/providers/azure_ai.mdx` (+4 -4) </details> ### 📄 Description --- Overview Updated Azure AI chat model integration documentation to use the current recommended AzureAIOpenAIApiChatModel class instead of the deprecated AzureAIChatCompletionsModel, and updated environment variable references accordingly. Type of change Type: Update existing documentation / Fix outdated content Related issues/PRs - GitHub issue: (if applicable) - Feature PR: (if applicable) - Linear issue: - Slack thread: Checklist - I have read the README.md, including the https://docs.langchain.com/oss/python/contributing/overview#language-policy - I have tested my changes locally using docs dev - All code examples have been tested and work correctly - I have used root relative paths for internal links - I have updated navigation in src/docs.json if needed (Internal team members only / optional): Create a preview deployment as necessary using the https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml Additional notes Summary of Changes: - Replaced deprecated class: Changed AzureAIChatCompletionsModel to AzureAIOpenAIApiChatModel - The old class uses Azure AI Inference beta SDK which is deprecated and will be retired on May 30, 2026 - The new class uses the stable OpenAI-compatible API with OpenAI SDK - Updated environment variables: Aligned environment variable references with the new class requirements - Import statements: Updated import paths to reflect the current recommended approach Rationale: The AzureAIChatCompletionsModel class is deprecated (as of version 1.1.0) and users should migrate to AzureAIOpenAIApiChatModel. This update ensures documentation reflects current best practices and prevents users from implementing code that will break after May 30, 2026. --- --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:21:30 -04:00
yindo closed this issue 2026-06-05 18:21:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3232