A library that takes the pain out of creating ChatGPT bots.
Project description
ChatGPT Bot
This is a small library that tries to make it easier to create a ChatGPT bot. It has a simple interface that keeps conversational context in a SQLite database:
from chatgpt_bot import Conversation
>>> conversation = Conversation("some random ID", api_key="YOUR_OPENAI_API_KEY")
>>> conversation.ask("Hi, how are you today?")
"As an AI language model, I don't have feelings, but I'm always ready to assist you
with any questions or tasks you have. How can I help you today?"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chatgpt_bot-0.1.2.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file chatgpt_bot-0.1.2.tar.gz
.
File metadata
- Download URL: chatgpt_bot-0.1.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5afdda693d4c24e119ab0635813a717380eb5f846b4b7b1eb2281957724e320d |
|
MD5 | fa81878c76161f30f32f9e2c02ffdb20 |
|
BLAKE2b-256 | 96cde97929e6f2ab2dc21a643d60e2146ec95d28ad7e7d6bdab6a71e5b95ac52 |
File details
Details for the file chatgpt_bot-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: chatgpt_bot-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef4912c6fb9f4fc1c6400a54e0f9e05b6595561a354f12f1bcbdcefd817700f |
|
MD5 | 6d1b4b35e14abe420d1c52c46343b805 |
|
BLAKE2b-256 | ef2adfdcdfa4c5fc19c62086e804b986a6278c69d13fd6e3ce9fa8dd7ae0d4c1 |