Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/musatahawar/chat-bot

This Python-based chatbot utilizes OpenAI's GPT-3.5 model to engage in conversational interactions with users.
https://github.com/musatahawar/chat-bot

chatbot chatgpt python python3 pythonprojects

Last synced: 20 days ago
JSON representation

This Python-based chatbot utilizes OpenAI's GPT-3.5 model to engage in conversational interactions with users.

Awesome Lists containing this project

README

        

# GPT-3 Chatbot

This Python-based chatbot utilizes OpenAI's GPT-3.5 model to engage in conversational interactions with users.

## Prerequisites

- Python 3.x installed
- `openai` Python package installed. You can install it via pip:
```
pip install openai
```
- OpenAI API key. You can sign up for an API key [here](https://platform.openai.com/signup).

## Setup

1. Clone this repository or download the source code.

2. Open the `chatbot.py` file.

3. Replace `'YOUR_API_KEY'` with your actual OpenAI API key in the `api_key` variable.

## Usage

1. Run the chatbot by executing the following command in your terminal or command prompt:
```
python chatbot.py
```

2. The chatbot will greet you and await your input. Type your messages as if you're having a conversation.

3. To exit the chat, type `exit`.

## Customization

- You can modify the conversation logic, prompts, or responses within the `ask_gpt3()` function in `chatbot.py` to suit your requirements.

## Notes

- Make sure to comply with OpenAI's use-case policy and API usage guidelines while using their services.
- Handle exceptions and error cases as necessary for a more robust chatbot experience.

## Resources

- [OpenAI API Documentation](https://beta.openai.com/docs/)
- [OpenAI Platform](https://platform.openai.com/)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Autbor

A Program made by Musa Tahawar [musatahawar25#gmail.com]