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.4.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file chatgpt_bot-0.1.4.tar.gz
.
File metadata
- Download URL: chatgpt_bot-0.1.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef0feb4680d849a932ebbebd9806621722a9fe9ec9d8f67a0bfbe1d459da1fd4 |
|
MD5 | 0f6be7000ebab638e034db7f264557b8 |
|
BLAKE2b-256 | 54a009baafced46c76921fa5810904895cf00a2da67c3e8236d71ae05f2f663a |
File details
Details for the file chatgpt_bot-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: chatgpt_bot-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.1 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 | fd10cfc8169552db5bf8947cfb36733c386428feb6d153e612678d2fe6b37b7e |
|
MD5 | 0578836b66cf1b4935da646c7a513cd6 |
|
BLAKE2b-256 | 879296e69f2a366e9612c1363ee16bbba3257b484a1395d69022533d3f2dcb31 |