diff --git a/src/renderer/src/aiCore/prepareParams/messageConverter.ts b/src/renderer/src/aiCore/prepareParams/messageConverter.ts index e0316a4cf..754085425 100644 --- a/src/renderer/src/aiCore/prepareParams/messageConverter.ts +++ b/src/renderer/src/aiCore/prepareParams/messageConverter.ts @@ -181,7 +181,7 @@ function convertToolBlockToToolResultPart(toolBlock: ToolMessageBlock): ToolResu } else if (typeof content === 'string') { output = { type: 'text', value: content } } else { - output = { type: 'json', value: JSON.parse(JSON.stringify(content)) } + output = { type: 'json', value: content } } return {