Skip to content
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

Minor fixes to RedTeam #40310

Merged
merged 3 commits into from
Apr 1, 2025
Merged

Minor fixes to RedTeam #40310

merged 3 commits into from
Apr 1, 2025

Conversation

slister1001
Copy link
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

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.

@Copilot Copilot bot review requested due to automatic review settings April 1, 2025 16:28
@slister1001 slister1001 requested a review from a team as a code owner April 1, 2025 16:28
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Apr 1, 2025
Copy link
Contributor

@Copilot 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 introduces minor fixes to the RedTeam component by updating the dependency specifier in setup.py and adding try/except blocks to handle potential exceptions when computing attack success rates in the red team result logic.

  • Updated the dependency specifier for the "redteam" extra in setup.py.
  • Wrapped multiple attack success rate calculations in try/except blocks in _red_team.py for improved error handling.

Reviewed Changes

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

File Description
sdk/evaluation/azure-ai-evaluation/setup.py Modified the dependency version specifier for redteam.
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_red_team/_red_team.py Added try/except blocks around metric calculations and updated logging messages.
Files not reviewed (1)
  • sdk/evaluation/azure-ai-evaluation/dev_requirements.txt: Language not supported

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@slister1001 slister1001 merged commit a0ab10d into Azure:main Apr 1, 2025
19 checks passed
weirongw23-msft pushed a commit to weirongw23-msft/azure-sdk-for-python that referenced this pull request Apr 4, 2025
* small fixes

* typo

* undo dev requirements change
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.

3 participants