We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d0c9e commit ccc9f3eCopy full SHA for ccc9f3e
packages/ai-chat/src/common/chat-model.ts
@@ -1043,7 +1043,7 @@ export class ToolCallChatResponseContentImpl implements ToolCallChatResponseCont
1043
actor: 'ai',
1044
type: 'tool_use',
1045
id: this.id ?? '',
1046
- input: (this.arguments && JSON.parse(this.arguments)) ?? undefined,
+ input: this.arguments && this.arguments.length !== 0 ? JSON.parse(this.arguments) : {},
1047
name: this.name ?? ''
1048
}, {
1049
actor: 'user',
0 commit comments