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.1.3.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file chatgpt_bot-0.1.3.tar.gz
.
File metadata
- Download URL: chatgpt_bot-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0dd5af747e0f433549bedae465e0f632a84d18c4c6777355e107378b19136c4 |
|
MD5 | 7122b96c3c30657bd5a0980e7601dc0d |
|
BLAKE2b-256 | e243076e95f80f44c7c0626ad6e46a7288734f62abcdd386414ee8c43536dd48 |
File details
Details for the file chatgpt_bot-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: chatgpt_bot-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.0 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 | c6ab7b555faaaa622b0be4aaa223ad09196ea1c929e166cb07ef687fc4565b44 |
|
MD5 | 9c14fbc241867497f04665528875ce16 |
|
BLAKE2b-256 | 9772d1281a51767a0f597a2c1d9ae565472ed897f8ef0406d24dff01de0b17eb |