Demo and code for a CohereAI Chat endpoint as a command line chat tool
Steps
-
Download this code
-
cd to the directory
-
set up an environment variable COHEREAI_API_KEY Example on a Linux or Mac machine:
export COHEREAI_API_KEY=your-api-key
-
Install cohere python package
pip install cohere==3.1.6
-
run this command to start the chatbot
python app.py
Note: This tool uses the same session as long as you keep running it. To start fresh, just quit the tool and run again.
Happy chatting.