From 735b94360aa1df880c32e0651854313631023abd Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Thu, 27 Apr 2023 03:42:52 +0200 Subject: [PATCH] MAX_TOKENS to int --- llamabot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llamabot.js b/llamabot.js index 159ccf3..e0910cf 100644 --- a/llamabot.js +++ b/llamabot.js @@ -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 });