InfiniGPT is an asynchronous, multi-channel AI chatbot for IRC, with a great prompt which allows it to roleplay as almost anything you can think of. It supports OpenAI, xAI, Google and Ollama models. You can set any default personality you would like. It can be changed at any time, and each user has their own separate chat history with their chosen personality setting. Users can interact with each others chat histories for collaboration if they would like, but otherwise, conversations are separated.
Also available for the Matrix chat protocol at infinigpt-matrix
pip install -r requirements.txt
Get an OpenAI API key, an xAI API key, and a Google API key. Add those to config.json. Add/remove the models you would like to be available from the model lists.
Familiarize yourself with Ollama, make sure you can run local LLMs. Install the models you want to use and replace the example Ollama models in config.json. If you would like to use with Ollama only, you can leave the lists of models for the other services empty.
Fill in the irc credentials in config.json.
Password is optional, but it is recommended because registration is required for some channels, and some users may not be able to privately message the bot unless it has identified to the server.
python infinigpt.py
.ai message or botname: message
Basic usage. You can also privately message the bot without using these commands.
.x user message
This allows you to talk to another user's chat history.
user is the display name of the user whose history you want to use
.persona personality
Changes the personality. It can be a character, personality type, object, idea.
Don't use a custom system prompt here.
.custom prompt
Set a custom system prompt
.reset
Reset to preset personality
.stock
Remove personality and reset to standard GPT settings
.model
List available large language models
.model modelname
Change model
.join channel
Join a channel
.part channel
Leave a channel. You can omit channel to part channel command was issued in.
.gpersona personality
Set a new default personality.
.help botname
Display the help menu