We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6da2b20 commit e68714eCopy full SHA for e68714e
1 file changed
packages/ai-native/src/browser/chat/chat-model.ts
@@ -352,7 +352,9 @@ export class ChatModel extends Disposable implements IChatModel {
352
: request.message.prompt,
353
});
354
for (const part of request.response.responseParts) {
355
- if (part.kind === 'treeData' || part.kind === 'component') {
+ // Remove reasoning_content from history
356
+ // https://api-docs.deepseek.com/zh-cn/guides/reasoning_model#%E4%B8%8A%E4%B8%8B%E6%96%87%E6%8B%BC%E6%8E%A5
357
+ if (part.kind === 'treeData' || part.kind === 'component' || part.kind === 'reasoning') {
358
continue;
359
}
360
if (part.kind !== 'toolCall') {
0 commit comments