litellm/litellm/llms/bedrock
devin-ai-integration[bot] 6a2d3edce3
fix(bedrock): split the <reasoning> tag for gpt-oss only on native Chat Completions (#44432)
* fix(bedrock): split the <reasoning> tag for gpt-oss only on native Chat Completions

The native Chat Completions route moved a leading <reasoning>...</reasoning>
block into reasoning_content for every model, while only gpt-oss writes its
reasoning inline. A GPT 5.6 or Grok answer that starts with a literal
<reasoning> tag lost that text, streaming and non-streaming alike. Both paths
now split only when the model id is gpt-oss.

* fix(bedrock): drive the inline reasoning split from a cost-map flag

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-10-08 16:32:07 -07:00
..
audio_transcription refactor(rust-bridge): unify native call inputs and Messages settings (#45126) 2026-10-07 15:05:43 -07:00
batches fix(bedrock): map Scheduled batch jobs to in_progress on retrieve (#45157) 2026-10-07 18:08:51 -07:00
chat fix(bedrock): split the <reasoning> tag for gpt-oss only on native Chat Completions (#44432) 2026-10-08 16:32:07 -07:00
claude_platform refactor(anthropic): rename experimental_pass_through to pass_through (#43329) 2026-09-26 13:00:50 -07:00
count_tokens fix(bedrock): count tokens on bedrock-mantle when bedrock-runtime cannot count a Claude model (#45317) 2026-10-08 15:26:49 -07:00
embed refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
files refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
image_edit refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
image_generation refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
messages refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
passthrough feat(guardrails): per-mode stream_scope with bedrock stream and pass-through fixes (#43801) 2026-10-08 13:46:53 -07:00
realtime fix(bedrock): forward each Nova Sonic assistant sentence once over the realtime API (#44987) 2026-10-06 22:02:31 -07:00
rerank refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
responses fix(bedrock): honor unsupported reasoning effort levels for OpenAI GPT models (#44183) 2026-10-02 21:03:58 -07:00
search refactor(types): replace Any with proven types in 137 files (#44478) 2026-10-05 11:01:45 -07:00
vector_stores fix(bedrock): forward userContext in Knowledge Base Retrieve requests 2026-09-16 11:50:36 -07:00
base_aws_llm.py refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
common_utils.py fix(bedrock): split the <reasoning> tag for gpt-oss only on native Chat Completions (#44432) 2026-10-08 16:32:07 -07:00
cost_calculation.py refactor(lint): apply every safe ruff autofix and zero 28 strict-rule budgets 2026-08-01 15:43:29 -07:00
request_metadata.py feat(bedrock): forward LiteLLM identity and metadata into Bedrock requestMetadata (#36861) 2026-08-17 11:27:46 -07:00