Repository navigation
[pull] main from LibreChat-AI:main - #235
Merged
Merged
Conversation
* 🩹 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>
This branch was successfully deployed
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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 : )