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 details)
Built Distribution
File details
Details for the file chatgpt_bot-0.1.0.tar.gz
.
File metadata
- Download URL: chatgpt_bot-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b660c013fab4f4336f360f8b521143722a6c8804dab741ea00de0b4cfd9ebc5 |
|
MD5 | 339a0b224049f17c31d4221bf787005d |
|
BLAKE2b-256 | b5f29c5d71a4e4b2f495fc48dfc376d5056fddfe85b13656d5cf7a879de8b1c1 |
File details
Details for the file chatgpt_bot-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: chatgpt_bot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 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 | e8d1b5c8dd43a6d8fb67dcc5f92dbfea1f7e54534a2efd25b610e67113aa9e4d |
|
MD5 | 5a38e90cea50136ed81395d691b76dff |
|
BLAKE2b-256 | c20070d5f28defddab7ff0dec9569dfb2fb1ca9adcae3dc18ba0715f56ffcc65 |