fix tool call blank content (#2458)

This commit is contained in:
Neal Shah
2026-02-10 14:14:27 -08:00
committed by GitHub
parent e55829623f
commit 4f84decdec
@@ -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');
}
}