Pass names to Cohere prompt converter
This commit is contained in:
parent
ee62f77e96
commit
05ae571971
|
@ -566,7 +566,7 @@ async function sendCohereRequest(request, response) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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
|
// https://docs.cohere.com/reference/chat
|
||||||
const requestBody = {
|
const requestBody = {
|
||||||
|
|
Loading…
Reference in New Issue