Skip to content

Commit e6fc773

Browse files
committed
fix: unfixed fix from earlier
1 parent 9dbba29 commit e6fc773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/src/modules/puterai/lib/Messages.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ module.exports = class Messages {
3030
});
3131
}
3232
delete message.tool_calls;
33+
} else {
34+
throw new Error(`each message must have a 'content' property`);
3335
}
34-
throw new Error(`each message must have a 'content' property`);
3536
}
3637
if ( whatis(message.content) !== 'array' ) {
3738
message.content = [message.content];

0 commit comments

Comments
 (0)