MAX_TOKENS to int

This commit is contained in:
Raven Scott 2023-04-27 03:42:52 +02:00 committed by MrTuxedo
parent d2aae48e33
commit 0caf82d7f6

View File

@ -236,7 +236,7 @@ async function generateResponse(conversation, message) {
},
body: JSON.stringify({
messages: messagesCopy,
max_tokens: process.env.MAX_TOKENS // add the max_tokens parameter here
max_tokens: Number(process.env.MAX_TOKENS) // add the max_tokens parameter here
}),
signal: controller.signal
});