fix(ai/providers): added nullish coalescing operator for empty object default in function call

- Added nullish coalescing operator to provide empty object default for function call arguments.
This commit is contained in:
can1357
2026-02-07 08:58:32 +01:00
parent 26c9fce26b
commit 86f35241f9
+1 -1
View File
@@ -166,7 +166,7 @@ ${params}
const part: Part = {
functionCall: {
name: block.name,
args: block.arguments,
args: block.arguments ?? {},
...(requiresToolCallId(model.id) ? { id: block.id } : {}),
},
};