Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thareendra2000/chat-bot-open-ai-api

A simple chat bot using open ai api.
https://github.com/thareendra2000/chat-bot-open-ai-api

Last synced: about 1 month ago
JSON representation

A simple chat bot using open ai api.

Awesome Lists containing this project

README

        

# Chat-Bot
A chatbot using the OpenAI's Chat GPT API "gpt-3.5-turbo" and Flasks Server.

## Requirements

1. Flask module to create a web server.
2. OpenAI module to use it's API.
3. OpenAI API key

## Getting Started

To get started using this application, please follow the steps below:

1. Install Python on your computer.
2. Navigate to the directory where you have cloned this repository.
3. Run the command `pip install -r requirements.txt` to install the necessary Python packages.
4. Create a copy of `.env.example` and rename it as `.env`. Add your OpenAI API key to the `.env` file. You can obtain an API key by signing up for OpenAI's API program.
5. Run the command `python app.py` to start the application.

## Usage

Once the application is running, you can use it to generate text based on a prompt that you provide. Simply enter a prompt and the application will use OpenAI's API to generate a response.

![img2](https://github.com/Thareendra2000/chat-bot-open-ai-api/assets/97722096/cfdb645c-23bf-4d59-9d64-5c16b5949169)
![img1](https://github.com/Thareendra2000/chat-bot-open-ai-api/assets/97722096/56e62a51-3796-4bdf-9f91-96e96df8b238)