Pass names to Cohere prompt converter

This commit is contained in:
Cohee 2024-04-11 19:53:45 +03:00
parent ee62f77e96
commit 05ae571971
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ async function sendCohereRequest(request, response) {
}
try {
const convertedHistory = convertCohereMessages(request.body.messages);
const convertedHistory = convertCohereMessages(request.body.messages, request.body.char_name, request.body.user_name);
// https://docs.cohere.com/reference/chat
const requestBody = {