Skip to content

Updating Python Chat App#1137

Merged
mrm9084 merged 2 commits intomainfrom
PythonChatAppUpdate
Mar 4, 2026
Merged

Updating Python Chat App#1137
mrm9084 merged 2 commits intomainfrom
PythonChatAppUpdate

Conversation

@mrm9084
Copy link
Member

@mrm9084 mrm9084 commented Feb 27, 2026

No description provided.

@mrm9084 mrm9084 requested a review from Copilot February 27, 2026 22:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Python ChatApp sample to use Azure AI Foundry (via azure-ai-inference) instead of the openai Azure OpenAI client, while keeping Azure App Configuration as the settings source.

Changes:

  • Swap dependency from openai to azure-ai-inference.
  • Rename and simplify configuration models from “Azure OpenAI” to “Azure AI Foundry”.
  • Update the app to create a ChatCompletionsClient using DefaultAzureCredential and invoke complete(...).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
examples/Python/ChatApp/requirements.txt Replaces openai dependency with azure-ai-inference.
examples/Python/ChatApp/models.py Renames service config model and reshapes chat completion configuration fields.
examples/Python/ChatApp/app.py Switches client creation and chat completion call to Azure AI Foundry inference client.
examples/Python/ChatApp/README.md Updates sample documentation to reference Azure AI Foundry and new configuration keys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mrm9084 mrm9084 merged commit c0bb7c1 into main Mar 4, 2026
6 checks passed
@mrm9084 mrm9084 deleted the PythonChatAppUpdate branch March 4, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants