stop parameter
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user