Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/thareendra2000/chat-bot-open-ai-api
- Owner: Thareendra2000
- Created: 2023-08-30T05:53:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-30T08:46:19.000Z (over 1 year ago)
- Last Synced: 2024-10-28T17:27:41.997Z (3 months ago)
- Language: HTML
- Size: 670 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)