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.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for chatgpt_bot-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef4912c6fb9f4fc1c6400a54e0f9e05b6595561a354f12f1bcbdcefd817700f |
|
MD5 | 6d1b4b35e14abe420d1c52c46343b805 |
|
BLAKE2b-256 | ef2adfdcdfa4c5fc19c62086e804b986a6278c69d13fd6e3ce9fa8dd7ae0d4c1 |