Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paul1404/openai-python-chatbot
This is a simple ChatBot application that uses the OpenAI API 🧠 to generate responses. The GUI is built with PySide6.
https://github.com/paul1404/openai-python-chatbot
artificial-intelligence chatbot chatgpt-api pyside6 python3
Last synced: 4 days ago
JSON representation
This is a simple ChatBot application that uses the OpenAI API 🧠 to generate responses. The GUI is built with PySide6.
- Host: GitHub
- URL: https://github.com/paul1404/openai-python-chatbot
- Owner: Paul1404
- License: mit
- Created: 2023-07-15T22:12:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-16T14:27:00.000Z (over 1 year ago)
- Last Synced: 2024-11-14T15:30:35.702Z (2 months ago)
- Topics: artificial-intelligence, chatbot, chatgpt-api, pyside6, python3
- Language: Python
- Homepage: https://pd-portfolio.net
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🤖 ChatBot Application
This is a simple ChatBot application that uses the OpenAI API 🧠 to generate responses. The GUI is built with PySide6.
## 📥 Installation
1. Clone the repository to your local machine:
```bash
git clone https://github.com/Paul1404/OpenAI-Python-ChatBot.git
```2. Navigate to the project directory:
```bash
cd chatbot
```3. Install the required Python packages:
```bash
pip install -r requirements.txt
```## 🔐 Configuration
You need to provide your OpenAI API key for the application to work. This can be done by creating a `config.ini` file in the project directory with the following structure:
```ini
[DEFAULT]
OPENAI_API_KEY = your_openai_api_key
```Replace `your_openai_api_key` with your actual OpenAI API key.
## 🎮 Usage
To run the ChatBot application, simply run the script with Python:
```bash
python3 main.py
```A window will pop up. Type in your message in the bottom text field and press Enter. The application will send your message to the OpenAI API and display the response in the top text area.
## 📜 License
This project is licensed under the terms of the MIT license.