Merge pull request #32 from homberger/patch-1

Fix typo
This commit is contained in:
Max Robinson 2024-04-05 17:00:03 -05:00 committed by GitHub
commit 7c7a0b7201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ export class Claude {
msg.role = 'user';
msg.content = 'SYSTEM: ' + msg.content;
}
if (msg.role === prev_role && msg.role === 'assitant') {
if (msg.role === prev_role && msg.role === 'assistant') {
// insert empty user message to separate assistant messages
messages.push(filler);
messages.push(msg);