mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-01-09 07:32:05 +08:00
parent
96784b68b5
commit
73f3066b11
@ -66,6 +66,7 @@ export class MessageCleanupProcessor extends BaseProcessor {
|
||||
content: message.content,
|
||||
role: message.role,
|
||||
...(message.tool_calls && { tool_calls: message.tool_calls }),
|
||||
...(message.reasoning && { reasoning: message.reasoning }),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -243,6 +243,10 @@ describe('contextEngineering', () => {
|
||||
type: 'text',
|
||||
},
|
||||
],
|
||||
reasoning: {
|
||||
content: 'I need to calculate the answer to life, universe, and everything.',
|
||||
signature: 'thinking_process',
|
||||
},
|
||||
role: 'assistant',
|
||||
},
|
||||
]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user