Skip to content

Conversation

@nagkumar91
Copy link
Member

Description

Service wanted the SDK to add a default value to the PythonGrader.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@nagkumar91 nagkumar91 requested a review from a team as a code owner November 4, 2025 18:22
Copilot AI review requested due to automatic review settings November 4, 2025 18:22
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Nov 4, 2025
@nagkumar91 nagkumar91 changed the title Add default value to image tag for PythongFrader Add default value to image tag for PythonGrader Nov 4, 2025
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 adds a default value of "2025-05-08" for the image_tag parameter in AzureOpenAIPythonGrader, making it optional for users who don't need to specify a custom Python execution environment version.

  • Changed image_tag parameter from required to optional with a default value
  • Updated documentation to reflect the new optional parameter with its default
  • Added a unit test to verify the default behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_aoai/python_grader.py Updated image_tag parameter to have default value "2025-05-08" and updated docstring to reflect Optional type and default
sdk/evaluation/azure-ai-evaluation/tests/unittests/test_aoai_python_grader.py Added test_default_image_tag test case to verify grader can be created without specifying image_tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Evaluation Issues related to the client library for Azure AI Evaluation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant