Repository navigation
feat(bedrock): serve gpt-5.6+ chat completions natively by default, with chat_completions/ opt-in for gpt-oss and grok #40775
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
Closed
Closed
Changes from 6 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
84084d9
feat(bedrock): send grok chat completions through runtime openai path
mateo-berri df7e9da
Merge remote-tracking branch 'origin/main' into litellm_bedrock_grok_…
mateo-berri 6b9f067
feat(bedrock): serve gpt-oss and gpt-5.6 chat completions on runtime'…
mateo-berri a1c089f
fix(bedrock): route gpt-oss response_format to Converse and decide th…
mateo-berri b90c2f1
fix(bedrock): serve region-path and GovCloud gpt-oss ids on native Ch…
mateo-berri 22b217b
fix(bedrock): keep params AWS refuses natively off the chat completio…
mateo-berri 0a85e27
fix(bedrock): keep schema-less json_object on Converse for the chat c…
mateo-berri 0139dd0
fix(bedrock): keep every json_object response_format on Converse for …
mateo-berri 36759ee
Merge origin/main into litellm_bedrock_grok_chat_completions
mateo-berri c4c24dd
fix(rust): declare the bedrock runtime chat completions flags on Mode…
mateo-berri ff8e15d
fix(bedrock): opt into the native chat completions route through supp…
mateo-berri 4101c0c
docs(cost-map): describe the bedrock native chat completions capabili…
mateo-berri 61a130c
revert: docs(cost-map): describe the bedrock native chat completions …
mateo-berri e706095
merge: main into litellm_bedrock_grok_chat_completions
mateo-berri c60249f
test(bedrock): move the native chat completions tests under tests/unit
mateo-berri f4d84f8
fix(bedrock): drop reasoning_effort none for grok on the native chat …
mateo-berri e653217
fix(bedrock): keep converse extension params on the converse route
mateo-berri 093a9d4
fix(bedrock): inline http image urls and keep stop on converse for na…
mateo-berri daba257
refactor(bedrock): share the sync remote media inliner
mateo-berri cbf01c2
fix(image-handling): infer the image mime type when the server sends …
mateo-berri 4900a1a
fix(bedrock): stop sending aws_bedrock_project_id as OpenAI-Project o…
mateo-berri ef03d19
Merge remote-tracking branch 'origin/main' into litellm_bedrock_grok_…
mateo-berri 3a390e6
feat(bedrock): make native chat completions an opt-in bedrock/chat_co…
mateo-berri 84ae459
fix(bedrock): keep chat_completions/-prefixed deployments on the nati…
mateo-berri 77204f8
fix(bedrock): keep provider response headers on the runtime chat comp…
mateo-berri 615eff5
Merge remote-tracking branch 'origin/main' into litellm_bedrock_grok_…
mateo-berri 3e3b9cd
feat(bedrock): serve gpt-5.6 and newer on runtime chat completions by…
mateo-berri 22e35c6
fix(bedrock): refuse temperature and top_p natively on GPT 5.6 and ne…
mateo-berri 952adfc
fix(bedrock): refuse GPT sampling and logprob params natively only wh…
mateo-berri 19176f6
refactor(bedrock): keep the Converse route-prefix strip inside the be…
mateo-berri a0cef91
fix(bedrock): forward a non-string reasoning_effort on the native rou…
mateo-berri 708f5a5
chore: merge main into litellm_bedrock_grok_chat_completions
mateo-berri dae29c1
fix(bedrock): route overlong GPT version digits to Converse and send …
mateo-berri 578f26e
fix(bedrock): route model_id overrides to Converse and never send an …
mateo-berri 4ee7ff4
test(bedrock): audit the native GPT chat completions route on the int…
mateo-berri 2f27eb3
test(bedrock): harden the runtime chat completions audit cells
mateo-berri 6daf0b7
fix(bedrock): refuse or drop a non-string reasoning_effort before the…
mateo-berri e518e0e
test(bedrock): pin router retries off and give the chaos bursts confi…
mateo-berri a109787
Merge remote-tracking branch 'origin/main' into litellm_bedrock_grok_…
mateo-berri 6befa50
test(bedrock): wait for the replacement worker before tearing down th…
mateo-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
Some comments aren't visible on the classic Files Changed page.
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
404 changes: 404 additions & 0 deletions
404
litellm/llms/bedrock/chat/chat_completions/transformation.py
Large diffs are not rendered by default.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.