Skip to content

Conversation

Copy link

Copilot AI commented Nov 4, 2025

The image_tag parameter in AzureOpenAIPythonGrader now defaults to "2025-05-08" instead of None, making it optional for users while maintaining backward compatibility.

Changes

  • azure/ai/evaluation/_aoai/python_grader.py: Set image_tag default to "2025-05-08" and updated docstring type annotation to Optional[str]
  • tests/unittests/test_aoai_python_grader.py: Added test case verifying instantiation without explicit image_tag

Usage

Before (required parameter):

grader = AzureOpenAIPythonGrader(
    model_config=config,
    name="custom_accuracy",
    image_tag="2025-05-08",  # Required
    pass_threshold=0.8,
    source=source_code,
)

After (optional with default):

grader = AzureOpenAIPythonGrader(
    model_config=config,
    name="custom_accuracy",
    pass_threshold=0.8,
    source=source_code,  # image_tag defaults to "2025-05-08"
)
Original prompt

https://github.com/nagkumar91/azure-sdk-for-python/blob/main/sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_aoai/python_grader.py#L66

make the image_tag have a default value "2025-05-08"


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Set default value for image_tag to 2025-05-08 Set default value for image_tag parameter to "2025-05-08" Nov 4, 2025
Copilot AI requested a review from nagkumar91 November 4, 2025 18:15
@nagkumar91 nagkumar91 marked this pull request as ready for review November 4, 2025 18:21
@nagkumar91 nagkumar91 merged commit f9ed449 into main Nov 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants