Skip to content

h1ddenpr0cess20/infinigpt-irc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

infinigpt-irc

InfiniGPT is an OpenAI chatbot for IRC (Internet Relay Chat). It has a great prompt which allows it to roleplay as almost anything you can think of. 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

Now with Ollama support and model switching.

Setup

pip3 install openai irc 

#optionally
pip3 install ollama-python

Get an OpenAI API key, set it as an environment variable OPENAI_API_KEY (you can do this at the bottom of the code as well by uncommenting the part to set the environment variable)

Add desired Ollama models to the models list in config.json if you want to use them.

Fill in the variables for channel, nickname, password and server in config.json.
Password is optional, but registration is required for some channels.

Use

python3 infinigpt.py

.ai message or botname: message Basic usage. Personality is preset by bot operator.

.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 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

.model reset Reset model

.help botname Display the help menu