fix tool call blank content (#2458)

This commit is contained in:
Neal Shah authored and GitHub committed 2026-02-10 14:14:27 -08:00
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');
}
}