Simple bash script depending on curl and jq to chat with GPT-3.5 and GPT-4 in your terminal, with streaming support!
# add your api key and select the desired model
OPENAI_API_KEY='sk-xx' CHAT_MODEL_NAME='gpt-3.5-turbo-0301' bash chat.sh
Simple bash script depending on curl and jq to chat with GPT-3.5 and GPT-4 in your terminal
Shell