MAX_TOKENS to int
This commit is contained in:
parent
da5e2e6e7d
commit
735b94360a
@ -236,7 +236,7 @@ async function generateResponse(conversation, message) {
|
|||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
messages: messagesCopy,
|
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
|
signal: controller.signal
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user