Commit graph

5 commits

Author SHA1 Message Date
8b4b35454b Add commandManager and the first slash command
the command allows for summining the bot without sending an actual mention message
that might hang in the chat log sent to openAi, consuming tokens
2023-05-08 08:53:06 +02:00
a66115c3b8 Track all requests to OpenAI in a database
this will be in future used to limit access to the bot
2023-05-02 17:55:48 +02:00
2a38ae4a95 Limit sent chat to 2048 tokens.
This also solves the issue where we would request more tokens,
than the model is capable of (over 4096)
2023-03-19 09:11:37 +01:00
276d70efee Parse usernames for use in OpenAI api
also document the toOpenAIMssages.ts file
2023-03-18 02:06:49 +01:00
c18b8d83ef Initial commit 2023-03-14 21:16:54 +01:00