mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-22 15:07:42 +01:00
lint: format
This commit is contained in:
parent
a62122a7d7
commit
b1f07eb989
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user