Merged
Conversation
…target The E2E tests were failing with exit code 2 because: 1. --database was removed from pyrit_scan CLI (PR microsoft#1536) 2. openai_objective_target initializer was deleted (PR microsoft#1536) Changes: - Add DEFAULT_OBJECTIVE_TARGET tag to TargetInitializerTags - Add openai_chat target config using generic OPENAI_CHAT_* env vars - Tag openai_chat as the default objective target in the registry - Update E2E test to use --target openai_chat, --initializers targets, and --config-file for InMemory database - Add unit tests for default objective target tagging Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
varunj-msft
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two issues with end-to-end tests
Fixes three issues uncovered by end-to-end scenario tests:
OpenAIChatTargetbypasses known model capabilitiesOpenAIChatTarget.__init__always overrode capabilities to theparent, so
get_default_capabilities(underlying_model)was never called. Models likegpt-4owith known image inputsupport fell back to text-only defaults. Now passes None when no explicit override is given, allowing the known
capabilities lookup to work.
airt_harmsdataset missing seed_type: objective Theairt.jailbreakscenario expectsSeedAttackGroupswithobjectives, but
harms.prompthad plain prompts. Added seed_type: objective (same as airt_hate.prompt and other AIRTdatasets).
extracted from the component identifier, instead of just OpenAIChatTarget::32bf8f72.