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.1.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatgpt_bot-0.2.1.tar.gz.
File metadata
- Download URL: chatgpt_bot-0.2.1.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 |
8ebafbd6f4d98f095305abecc4d8bf3dd516c9d8df7ebe36f04b8c617c780cd6
|
|
| MD5 |
b6091f23355fd266da346cc1664febb0
|
|
| BLAKE2b-256 |
172c0f745d2dc683908523504dba97653da7698f910126078ae0feff3132a8a3
|
File details
Details for the file chatgpt_bot-0.2.1-py3-none-any.whl.
File metadata
- Download URL: chatgpt_bot-0.2.1-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 |
8eca6dd8322efdb3a758b072b45f2cc9c9e698c6ec6a9c2ceceaf93dd3758e37
|
|
| MD5 |
62b9617394a8cd8ca0c2ebac8fcc38e8
|
|
| BLAKE2b-256 |
2a66e74b54cd702e3b917308bc4edadeb7dd6392f1e2bd0c880e215f19684d0e
|