Skip to content

[pull] main from LibreChat-AI:main - #235

Merged
pull[bot] merged 2 commits into
innFactory:mainfrom
LibreChat-AI:main
Sep 30, 2026
Merged

pull[bot] merged 2 commits into
innFactory:mainfrom
LibreChat-AI:main

Conversation

@pull

@pull pull Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

devanchohan and others added 2 commits September 29, 2026 20:20
* 🩹 fix: Don't Replay Claude Reasoning to Non-Claude Bedrock Models

A handoff that stays on Bedrock but changes model family (an agent on
Claude handing over to one on OpenAI GPT) fails on the receiving agent's
first request. The Claude turns in the history keep Bedrock-native
reasoning_content, and the cross-provider reasoning drop only covers
reasoning from another provider, so the blocks reach the GPT request and
Bedrock rejects it:

  ValidationException: This model doesn't support the
  reasoningContent.reasoningText.text field for assistant messages.

The same happens when a conversation switches from Claude to GPT.

convertToConverseMessages now takes the target model, and the Bedrock
chat model passes this.model. Prior reasoning (reasoning_content, and v1
reasoning blocks) is replayed only to Claude; for any other identified
model it is dropped, and a turn left empty gets the existing placeholder.
A model that can't be identified (none given, or an ARN) keeps the
reasoning, so existing callers are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* 🩹 fix: Classify Bedrock Model ARNs for Reasoning Replay

* 🩹 fix: Limit Bedrock Reasoning Filtering to OpenAI

* 🩹 fix: Correct Reasoning Replay Test Metadata

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Lia <lia@librechat.ai>
@pull pull Bot locked and limited conversation to collaborators Sep 30, 2026
@pull pull Bot added the ⤵️ pull label Sep 30, 2026
@pull
pull Bot merged commit 37fd3d2 into innFactory:main Sep 30, 2026
1 check passed
@pull
pull Bot deployed to publish September 30, 2026 04:44 Active

This branch was successfully deployed

1 active deployment
publish — 37fd3d2b Deployed Sep 30, 2026 by pull[bot] via publish #186
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants