-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add default value to image tag for PythonGrader #43783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add pyrit and not remove the other one
Co-authored-by: nagkumar91 <[email protected]>
Co-authored-by: nagkumar91 <[email protected]>
…-tag Set default value for image_tag parameter to "2025-05-08"
There was a problem hiding this 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_tagparameter 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 |
Description
Service wanted the SDK to add a default value to the PythonGrader.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines