Fix needsThinkingRecovery to require tool loop context
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -83,7 +83,7 @@ export function convertAnthropicToGoogle(anthropicRequest) {
|
||||
let processedMessages = messages;
|
||||
const targetFamily = isClaudeModel ? 'claude' : isGeminiModel ? 'gemini' : null;
|
||||
|
||||
if (isThinking && targetFamily && needsThinkingRecovery(messages, targetFamily)) {
|
||||
if (isThinking && targetFamily && needsThinkingRecovery(messages)) {
|
||||
logger.debug(`[RequestConverter] Applying thinking recovery for ${targetFamily}`);
|
||||
processedMessages = closeToolLoopForThinking(messages, targetFamily);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user