Added token limits to OpenAI chat.

This commit is contained in:
Niels Simenon
2023-04-09 01:44:22 +02:00
parent 058ca10011
commit 21a90a51cf
5 changed files with 938 additions and 39 deletions

View File

@@ -70,6 +70,10 @@ module.exports = {
'gpt-4',
],
model: 'gpt-3.5-turbo',
replyTokenLimit: 200,
userTokenLimit: 20000, // daily, roughly 100+ messages or $0.04 per user
userTokenPeriod: 24, // hours
temperature: 1,
history: 3,
rule: 'a tired game host',
rulePublic: true,