Skip to content

A template for building AI chatbots using cohereAI's chat endpoint in python flask

License

Notifications You must be signed in to change notification settings

harish-garg/flask-cohere-chatbot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-cohere-chatbot-example

This is a example chatbot that uses cohereAI's new chat API endpoint

At the moment of writing this, it was still in Alpha so recommend against using it in Production before checking with cohereAI.

Requirements

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. run this command to install the python packages

    pip install -r requirements.txt

  5. run this command to start the chatbot

    python app.py

  6. open the printed url from above command in your browser

Happy chatting.

About

A template for building AI chatbots using cohereAI's chat endpoint in python flask

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published