-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
[Infra] Merge internal dev branch with main #25036
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6792d99
fix(proxy): enforce key-level model allowlist for custom auth
milan-berri b907b59
Merge branch 'main' into fix/custom-auth-key-model-allowlist
milan-berri 5c8ab20
fix(proxy): gate custom-auth key model checks behind opt-in
milan-berri 770d050
test(proxy): isolate custom auth default check from shared settings s…
milan-berri b722d69
test(proxy): strengthen custom auth post-check assertions
milan-berri ca19d7b
fix(agentcore): parse A2A JSON-RPC responses in AgentCore provider
michelligabriele cdab991
fix(prompt-templates): ensure_alternating_roles handles tool-call chains
michelligabriele a2ad2c3
feat(auth): add JWT claim routing overrides for OAuth2 validation
milan-berri ae6cc70
docs(auth): document JWT-to-OAuth2 routing overrides
milan-berri 46c2348
Merge pull request #24989 from milan-berri/feat/jwt-routing-overrides
yuneng-berri 6058de4
Merge branch 'litellm_internal_dev_04_02_2026' into fix/custom-auth-k…
yuneng-berri 5b231a0
Merge pull request #24175 from milan-berri/fix/custom-auth-key-model-…
yuneng-berri f109dff
Merge pull request #24995 from michelligabriele/fix/agentcore-a2a-res…
yuneng-berri 8852d8e
Merge pull request #24996 from michelligabriele/fix/ensure-alternatin…
yuneng-berri 1d26232
Merge remote-tracking branch 'origin' into litellm_internal_dev_04_02…
yuneng-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
The previous implementation only inserted
assistant_continuebetween two directly adjacent user messages. The new implementation uses_counts_for_alternationto skip tool messages andassistant(tool_calls)messages, meaning a pattern like:now gets
assistant_continueinserted before the secondusermessage — behavior that did not exist before. Three existing tests (test_ensure_alternating_roles_does_not_split_tool_call_chain,test_ensure_alternating_roles_assistant_tool_call_then_assistant,test_ensure_alternating_roles_trailing_tool_call_assistant) were updated to match the new behavior, confirming this is intentional.However, per the project rule on backwards-incompatible changes, existing users who have
ensure_alternating_roles=Trueand agentic/tool-calling message patterns will silently receive extra injectedassistant_continuemessages, potentially breaking their existing model calls without any migration path.The safer approach would be to introduce this under a flag (e.g.
ensure_alternating_roles="strict"or a separateskip_tool_messages_in_alternationparam) so existing users are not affected.Rule Used: What: avoid backwards-incompatible changes without... (source)