harish-garg / cohereai-chat-commandline

Demo and code for a CohereAI Chat endpoint as a command line chat tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cohereai-chat-commandline

Demo and code for a CohereAI Chat endpoint as a command line chat tool

Steps

  1. Download this code

  2. cd to the directory

  3. set up an environment variable COHEREAI_API_KEY Example on a Linux or Mac machine:

    export COHEREAI_API_KEY=your-api-key

  4. Install cohere python package

    pip install cohere==3.1.6

  5. 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.

About

Demo and code for a CohereAI Chat endpoint as a command line chat tool


Languages

Language:Python 100.0%