Add assistant postfix to converted ChatML => text completion prompts.
This commit is contained in:
parent
c9783640c0
commit
e3f760a9dd
|
@ -2699,7 +2699,7 @@ function convertChatMLPrompt(messages) {
|
||||||
messageStrings.push(m.role + ": " + m.content);
|
messageStrings.push(m.role + ": " + m.content);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return messageStrings.join("\n");
|
return messageStrings.join("\n") + '\nassistant:';
|
||||||
}
|
}
|
||||||
|
|
||||||
async function sendScaleRequest(request, response) {
|
async function sendScaleRequest(request, response) {
|
||||||
|
|
Loading…
Reference in New Issue