Added OpenAI chat bot.

This commit is contained in:
Niels Simenon
2023-04-09 00:07:16 +02:00
parent a759421791
commit c17c51dcd1
3 changed files with 156 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ module.exports = {
usernamePrefix: '@',
channels: ['GamesNight'],
games: [
'chat',
'mash',
'trivia',
'letters',
@@ -61,6 +62,18 @@ module.exports = {
grey: 'shadow',
silver: 'shadow',
},
chat: {
apiKey: null, // OpenAI
validModels: [
'gpt-3.5-turbo',
'text-davinci-003',
'gpt-4',
],
model: 'gpt-3.5-turbo',
history: 3,
rule: 'a tired game host',
rulePublic: true,
},
trivia: {
mode: 'first', // first or timeout
rounds: 10,