Skip to content

[azure-ai-projects] Fix README context-manager snippets, a typo, and non-canonical env var names in samples#48124

Open
kkchandi wants to merge 4 commits into
Azure:mainfrom
kkchandi:docs-azure-ai-projects-fixes
Open

[azure-ai-projects] Fix README context-manager snippets, a typo, and non-canonical env var names in samples#48124
kkchandi wants to merge 4 commits into
Azure:mainfrom
kkchandi:docs-azure-ai-projects-fixes

Conversation

@kkchandi

Copy link
Copy Markdown

Documentation-only fixes in the azure-ai-projects package. No library code changes.

README.md

  • The synchronous and asynchronous context-manager snippets end at ): with no body, which is a SyntaxError if copy-pasted. Add a placeholder body (...) so the snippets run.
  • Fix a mismatched delimiter in a comment: `azure.ai.projects' -> `azure.ai.projects`.

samples/evaluations/ (3 files)

  • Standardize the environment variable names on the package convention used by every other sample in the folder: AZURE_AI_PROJECT_ENDPOINT -> FOUNDRY_PROJECT_ENDPOINT and AZURE_AI_MODEL_DEPLOYMENT_NAME -> FOUNDRY_MODEL_NAME (the audio variant becomes FOUNDRY_MODEL_NAME_FOR_AUDIO). Docstrings and code are updated together so each sample stays self-consistent.

kkchandi and others added 4 commits July 17, 2026 17:06
… typo

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 77e272d0-4d0f-42cf-b18b-50a5ab5b60e5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 77e272d0-4d0f-42cf-b18b-50a5ab5b60e5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 77e272d0-4d0f-42cf-b18b-50a5ab5b60e5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 77e272d0-4d0f-42cf-b18b-50a5ab5b60e5
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes documentation and sample consistency in azure-ai-projects.

Changes:

  • Adds bodies to context-manager snippets and corrects a README delimiter.
  • Standardizes evaluation sample environment variables.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
README.md Updates context-manager examples and logging comment.
sample_evaluations_score_model_grader_with_image_model_target.py Renames project and model environment variables.
sample_evaluations_score_model_grader_with_audio.py Renames project, grader, and audio model variables.
sample_evaluations_score_model_grader_with_audio_model_target.py Renames project, grader, and audio model variables.

Comment thread sdk/ai/azure-ai-projects/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants