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?"
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.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for chatgpt_bot-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8d1b5c8dd43a6d8fb67dcc5f92dbfea1f7e54534a2efd25b610e67113aa9e4d |
|
MD5 | 5a38e90cea50136ed81395d691b76dff |
|
BLAKE2b-256 | c20070d5f28defddab7ff0dec9569dfb2fb1ca9adcae3dc18ba0715f56ffcc65 |