mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Anthropic: downgraded a throw to warn
This commit is contained in:
@@ -415,8 +415,10 @@ function* _generateAnthropicMessagesContentBlocks({ parts, role }: AixMessages_C
|
||||
break;
|
||||
|
||||
case 'ma':
|
||||
if (!part.aText && !part.textSignature && !part.redactedData)
|
||||
throw new Error('Extended Thinking data is missing');
|
||||
if (!part.aText && !part.textSignature && !part.redactedData) {
|
||||
console.warn('Anthropic: broken empty thinking block', { part });
|
||||
break;
|
||||
}
|
||||
if (part.aText && part.textSignature)
|
||||
yield { role: 'assistant', content: AnthropicWire_Blocks.ThinkingBlock(part.aText, part.textSignature) };
|
||||
for (const redactedData of part.redactedData || [])
|
||||
|
||||
Reference in New Issue
Block a user