mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Compare commits
2 Commits
c400aa7543
...
e8e3366fe2
| Author | SHA1 | Date | |
|---|---|---|---|
| e8e3366fe2 | |||
| d813810a28 |
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user