Skip to content

andikasujanadi/python-GPT-3-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-GPT-3-chat

author: Andika Sujanadi

feel free to contribute and give me star

installation

install openai dependency with pip inside your OS or Virtual Environment

pip install openai

setup

  • rename chats_example directory name to chats

  • if you don't have OpenAI account, register on https://beta.openai.com/signup

  • create openaiapikey.txt in root directory and put your OpenAI account API keys

how to run

open terminal inside your project folder and execute py main.py

parameter

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

add character

create your character name and description inside chat/characters directory, you can take from example and name the file your-character-name.txt

customize scenario and conversation style

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors