Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/musatahawar/chat-bot
- Owner: MusaTahawar
- License: mit
- Created: 2024-01-02T10:27:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-02T10:56:43.000Z (about 1 year ago)
- Last Synced: 2024-11-09T17:18:56.687Z (3 months ago)
- Topics: chatbot, chatgpt, python, python3, pythonprojects
- Language: Python
- Homepage: http://musatahawar.epizy.com
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]