mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
Update src/renderer/src/aiCore/prepareParams/messageConverter.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ef9611cb96
commit
ed1d5f597e
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user