mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-07 20:31:50 +00:00
fix tool call blank content (#2458)
This commit is contained in:
1 parent
e55829623f
commit
4f84decdec
1 file changed
+1
-1
@@ -40,7 +40,7 @@ export const normalize_single_message = (message, params = {}) => {
|
||||
});
|
||||
}
|
||||
delete message.tool_calls;
|
||||
} else {
|
||||
} else if ( !message.role === 'tool' ) {
|
||||
throw new Error('each message must have a \'content\' property');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user