Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.