Added word limit to chat bot.

This commit is contained in:
Niels Simenon
2023-04-09 22:47:19 +02:00
parent f222922643
commit 68cefc0e2a
4 changed files with 192 additions and 8 deletions

View File

@@ -28,6 +28,7 @@ module.exports = {
'mash',
'trivia',
'letters',
// 'numbers',
'hunt',
'8ball',
'geo',
@@ -72,9 +73,11 @@ module.exports = {
'gpt-4',
],
model: 'gpt-3.5-turbo',
replyTokenLimit: 1000,
userTokenLimit: 20000, // daily, roughly 100+ messages or $0.04 per user
userTokenPeriod: 24, // hours
replyTokenLimit: 1000,
replyWordLimit: 100,
replyWordLimitPublic: true,
temperature: 1,
history: 2,
rule: 'a tired game host',