Skip to content

Commit

Permalink
Attempt to comply with Claude specs
Browse files Browse the repository at this point in the history
  • Loading branch information
PandarusAnon committed May 8, 2023
1 parent 991067d commit a9757f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,14 @@ function buildSlackPromptMessages(messages) {
function convertToPrompt(msg) {
if (msg.role === 'system') {
if ('name' in msg) {
return `${rename_roles[msg.name]}: ${msg.content}\n`
return `${rename_roles[msg.name]}: ${msg.content}\n\n`
}
else {
return `${msg.content}\n`
return `${msg.content}\n\n`
}
}
else {
return `${rename_roles[msg.role]}: ${msg.content}\n`
return `${rename_roles[msg.role]}: ${msg.content}\n\n`
}
}

Expand Down

0 comments on commit a9757f8

Please sign in to comment.