lint: format

This commit is contained in:
Cohee 2023-12-17 02:49:14 +02:00
parent a62122a7d7
commit b1f07eb989
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ async function sendMistralAIRequest(request, response) {
const lastMsg = messages[messages.length - 1];
if (messages.length > 0 && lastMsg && (lastMsg.role === 'system' || lastMsg.role === 'assistant')) {
lastMsg.role = 'user';
if(lastMsg.role === 'assistant') {
if (lastMsg.role === 'assistant') {
lastMsg.content = lastMsg.name + ': ' + lastMsg.content;
}
}