MAX_TOKENS to int
This commit is contained in:
parent
d2aae48e33
commit
0caf82d7f6
@ -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