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 hashes)
Built Distribution
Close
Hashes for chatgpt_bot-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd10cfc8169552db5bf8947cfb36733c386428feb6d153e612678d2fe6b37b7e |
|
MD5 | 0578836b66cf1b4935da646c7a513cd6 |
|
BLAKE2b-256 | 879296e69f2a366e9612c1363ee16bbba3257b484a1395d69022533d3f2dcb31 |