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?"
>>> conversation.set_metadata({"anything": "here"})
>>> conversation.get_metadata()
{"anything": "here"}
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.2.0.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file chatgpt_bot-0.2.0.tar.gz
.
File metadata
- Download URL: chatgpt_bot-0.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b51e3f80a8efdfde57620ce8fa2ea66b87dee144801827dc6bd9846269d785c |
|
MD5 | cbacab2686f15e22bd72d5f8d0e66828 |
|
BLAKE2b-256 | af1e66362c0479bb3b68d5a52f448bd2d3ad3800663e423666ce128e2827b849 |
File details
Details for the file chatgpt_bot-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: chatgpt_bot-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6531e24da86b1786894a3fe0c4f5810993dacc098c020650b32bdd2a2fc08feb |
|
MD5 | 966297c21dd75e78f2d9fd2da167d35c |
|
BLAKE2b-256 | cda060d3fa5da5c85a77fe4c11d8907ea5eeb505a11df23fa452bf7d86a7cd64 |