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:
@@ -166,7 +166,7 @@ ${params}
|
||||
const part: Part = {
|
||||
functionCall: {
|
||||
name: block.name,
|
||||
args: block.arguments,
|
||||
args: block.arguments ?? {},
|
||||
...(requiresToolCallId(model.id) ? { id: block.id } : {}),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user