Compare commits

...

2 Commits

Author SHA1 Message Date
Enrico Ros e8e3366fe2 AIX: XAI: enable entrypted reasoning (if disabled breaks subsequent turns) 2026-04-27 18:05:28 -07:00
Enrico Ros d813810a28 Anthropic: downgraded a throw to warn 2026-04-27 16:57:43 -07:00
2 changed files with 5 additions and 3 deletions
@@ -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 || [])
@@ -8,7 +8,7 @@ import { aixSpillShallFlush, aixSpillSystemToUser, approxDocPart_To_String } fro
// configuration
const AIX_XAI_ADD_ENCRYPTED_REASONING = false;
const AIX_XAI_ADD_ENCRYPTED_REASONING = true;
// const AIX_XAI_ADD_INLINE_CITATIONS = true; // yes but we don't know how yet