stop parameter

This commit is contained in:
yoannchb-pro
2024-02-29 15:11:14 -05:00
parent 3782dc937b
commit 5e5544c28a
3 changed files with 4 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -140,7 +140,8 @@ async function getChatGPTResponse(
temperature: 0.1, // Controls the randomness of the generated responses, with lower values producing more deterministic and predictable outputs. With set to 0.1 instead of 0 for more creativity.
top_p: 1, // Determines the diversity of the generated responses
presence_penalty: 0, // Encourages the model to introduce new concepts by penalizing words that have already appeared in the text.
max_tokens: 2000 // Maximum length of the response
max_tokens: 2000, // Maximum length of the response
stop: ['.', '!', '?'] // Stop on the ponctuation to do not cut the response
})
});