Update src/renderer/src/aiCore/prepareParams/messageConverter.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
SuYao 2025-12-13 22:30:28 +08:00 committed by GitHub
parent ef9611cb96
commit ed1d5f597e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,7 +181,7 @@ function convertToolBlockToToolResultPart(toolBlock: ToolMessageBlock): ToolResu
} else if (typeof content === 'string') { } else if (typeof content === 'string') {
output = { type: 'text', value: content } output = { type: 'text', value: content }
} else { } else {
output = { type: 'json', value: JSON.parse(JSON.stringify(content)) } output = { type: 'json', value: content }
} }
return { return {