Skip to content

FIX: include extra_body_parameters in chat target identifiers - #3092

Merged
Richard Lundeen (richlundeen) merged 5 commits into
microsoft:mainfrom
u7k4rs6:fix/chat-extra-body-identity
Oct 12, 2026
Merged

Richard Lundeen (richlundeen) merged 5 commits into
microsoft:mainfrom
u7k4rs6:fix/chat-extra-body-identity

Conversation

@u7k4rs6

Copy link
Copy Markdown
Contributor

Fixes #3091.

Adds extra_body_parameters to the OpenAIChatTarget and LiteLLMChatTarget identifiers, matching what OpenAIResponseTarget already does. The audio config is merged into the extra body, so different voices get different identities too. Targets without an extra body get None, which the identifier drops, so their hashes don't change.

This doesn't touch the analytics/eval identity, since that only uses model, temperature and top_p.

Tests: different reasoning_effort and audio voices give different hashes for both targets, and no extra body leaves it out. They fail on main. tests/unit/prompt_target, backend, memory, score, models and registry: 11205 passed (the 4 MCP/tool files need httpx2, and the migration head test needs build_scripts, both missing locally and failing on main too).

@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Oct 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 11, 2026
@u7k4rs6

Copy link
Copy Markdown
Contributor Author

The one red job is a flaky timeout in test_scoring_expectation_transport.py::test_attack_error_persists_after_cancelled_score_validation_async (macos 3.11 dev_all), unrelated to this change. It passes locally every time. Mind re-running it?

@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Oct 12, 2026
Merged via the queue into microsoft:main with commit b1f1d53 Oct 12, 2026
55 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.

BUG: chat target identifiers ignore extra_body_parameters

2 participants