Create a conversation interface with OpenAI. Conversation will be remembered up to context limit of the model.
git clone https://github.com/lopez-hector/simple_OpenAI_chat.git
2.cd simple_OpenAI_chat
- Set your OPENAI token
- Set up environment
python -m venv env
source env/bin/activate
pip install -r requirements.txt
python chat.py
- will default to chat-gpt (gpt-3.5-turbo)
- can specify GPT-4 (if you have access)
python chat.py -m gpt-4
It supports mult-line entry, so you may use the return key to continue your input.
To submit your input, append with
/end
Input quit
and the chat interface will close.
You may also of course escape.
python chat.py