feel free to contribute and give me star
install openai dependency with pip inside your OS or Virtual Environment
pip install openai
-
rename
chats_exampledirectory name tochats -
if you don't have OpenAI account, register on https://beta.openai.com/signup
-
create
openaiapikey.txtin root directory and put your OpenAI account API keys
open terminal inside your project folder and execute py main.py
you can change the character you play and the character should you expect from AI to be, inside main.py file
user1 is you, and user2 is the AI
history is parameter to create your history conversation, you can write whatever you like!
also you can change scenario and conversation style! more of that i expained at below
create your character name and description inside chat/characters directory, you can take from example and name the file your-character-name.txt
you can customize how the first scenario begin (you and AI are bestfriend, stranger, or even a couple!) and the way conversation flow (is it just like texting or like talk in real)
the way you put the scenario and conversation style is the same like you add character, but make sure you put them inside correct folder
i provide you some example on this file!
happy exploring guys!
feel free to contribute and give me star (again) or you can add an issue!