Repository navigation
Python: use FOUNDRY_MODEL in the Content Understanding DevUI sample READMEs - #9740
Open
NingLin Liu (ninglinLiu) wants to merge 10 commits into
Open
NingLin Liu (ninglinLiu) wants to merge 10 commits into
NingLin Liu (ninglinLiu) wants to merge 10 commits into
Conversation
NingLin Liu (ninglinLiu)
requested review from
SergeyMenshykh,
Tao Chen (TaoChenOSU),
Eduard van Valkenburg (eavanvalkenburg),
Giles Odigwe (giles17),
Jose Alvarez (jpalvarezl),
Evan Mattson (moonbox3),
Roger Barreto (rogerbarreto),
sophia-ramsey and
westey (westey-m)
as code owners
October 27, 2026 02:15
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 27, 2026 02:15 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
had a problem deploying
to
github-app-auth
October 27, 2026 02:16 — with
GitHub Actions
Error
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Both documentation corrections match the agents’ existing FOUNDRY_MODEL reads, with no unresolved issues.
No open issues 🎉
What changed in this PR
Corrects the setup instructions for two Content Understanding DevUI samples to match the environment variable their agents already read.
Changes:
- Replaces
AZURE_OPENAI_RESPONSES_DEPLOYMENT_NAMEwithFOUNDRY_MODELin both README environment blocks. - Leaves sample code, model values, and other environment variables unchanged.
| File | Description |
|---|---|
python/samples/02-agents/devui/agent_content_understanding/README.md |
Corrects the model environment variable in setup instructions. |
python/samples/02-agents/devui/agent_content_understanding_file_search_azure_openai/README.md |
Applies the same correction to the file-search sample. |
Review effort: Balanced
NingLin Liu (ninglinLiu)
requested a review
from Darren Cohen (dargilco)
as a code owner
October 30, 2026 08:38
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 08:39 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 08:43 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 12:08 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 14:06 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 16:06 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 17:20 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 17:22 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 17:40 — with
GitHub Actions
Inactive
NingLin Liu (ninglinLiu)
temporarily deployed
to
github-app-auth
October 30, 2026 19:33 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
The setup steps in the two Content Understanding DevUI sample READMEs tell users to set
AZURE_OPENAI_RESPONSES_DEPLOYMENT_NAME=gpt-4.1, but neither sample reads that variable. Bothagent.pyfiles build the client withmodel=os.environ["FOUNDRY_MODEL"](and listFOUNDRY_MODELin their docstrings), so a.envwritten from the README fails withKeyError: 'FOUNDRY_MODEL'when DevUI loads the agent.Description & Review Guide
AZURE_OPENAI_RESPONSES_DEPLOYMENT_NAMEwithFOUNDRY_MODELin the environment-variable block of:python/samples/02-agents/devui/agent_content_understanding/README.mdpython/samples/02-agents/devui/agent_content_understanding_file_search_azure_openai/README.mdFOUNDRY_MODELis the variable the samples read:agent_content_understanding/agent.pyline 49 andagent_content_understanding_file_search_azure_openai/agent.pyline 62. No other variable in either block is affected (FOUNDRY_PROJECT_ENDPOINTandAZURE_CONTENTUNDERSTANDING_ENDPOINTmatch the code).Related Issue
N/A - trivial change. A stale environment-variable name in two README setup blocks; the correction follows the variable the existing sample code already reads, with no behavior change.
AI Assistance
AI assistance details: finding the mismatch (README variables vs.
os.environreads in the samples), the documentation edit, and this PR description.Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.