From 72cff89ae9861026d636d71d4423db82c3facef5 Mon Sep 17 00:00:00 2001 From: ninglinLiu Date: Tue, 27 Oct 2026 20:49:13 +0800 Subject: [PATCH 1/2] Python: use FOUNDRY_* settings in the ChatKit integration sample README --- .../05-end-to-end/chatkit-integration/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/python/samples/05-end-to-end/chatkit-integration/README.md b/python/samples/05-end-to-end/chatkit-integration/README.md index 5a8639fa519..335aca5c4e3 100644 --- a/python/samples/05-end-to-end/chatkit-integration/README.md +++ b/python/samples/05-end-to-end/chatkit-integration/README.md @@ -135,7 +135,7 @@ async for event in stream_widget(thread_id=thread.id, widget=widget): - Python 3.10+ - Node.js 18.18+ and npm 9+ -- Azure OpenAI service configured +- A Microsoft Foundry project with a deployed model - Azure CLI for authentication (`az login`) ### Network Requirements @@ -169,15 +169,16 @@ For **production deployment**: ```bash cd python/samples/05-end-to-end/chatkit-integration -pip install agent-framework-chatkit fastapi uvicorn azure-identity +pip install agent-framework-chatkit agent-framework-foundry fastapi uvicorn azure-identity ``` -2. **Configure Azure OpenAI:** +2. **Configure Microsoft Foundry:** + +The backend creates its agent with `FoundryChatClient`, which reads these settings: ```bash -export AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com/" -export AZURE_OPENAI_API_VERSION="2024-06-01" -export AZURE_OPENAI_MODEL="gpt-4o" +export FOUNDRY_PROJECT_ENDPOINT="https://your-account.services.ai.azure.com/api/projects/your-project" +export FOUNDRY_MODEL="gpt-4o" ``` 3. **Authenticate with Azure:** From 1b84d7303961e1748d5f020414657ffced60a59d Mon Sep 17 00:00:00 2001 From: ninglinLiu Date: Tue, 27 Oct 2026 21:01:46 +0800 Subject: [PATCH 2/2] docs: add --pre to chatkit sample install (prerelease package) --- python/samples/05-end-to-end/chatkit-integration/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samples/05-end-to-end/chatkit-integration/README.md b/python/samples/05-end-to-end/chatkit-integration/README.md index 335aca5c4e3..8e0ac84387e 100644 --- a/python/samples/05-end-to-end/chatkit-integration/README.md +++ b/python/samples/05-end-to-end/chatkit-integration/README.md @@ -169,7 +169,7 @@ For **production deployment**: ```bash cd python/samples/05-end-to-end/chatkit-integration -pip install agent-framework-chatkit agent-framework-foundry fastapi uvicorn azure-identity +pip install agent-framework-chatkit agent-framework-foundry fastapi uvicorn azure-identity --pre ``` 2. **Configure Microsoft Foundry:**