mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 08:30:39 +00:00
fix tool call blank content (#2458)
This commit is contained in:
@@ -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