From 05ae571971102c22054b3e31ca8087837a9ce429 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:53:45 +0300 Subject: [PATCH] Pass names to Cohere prompt converter --- src/endpoints/backends/chat-completions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 057d2527c..876352b06 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -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 = {