Skip to main content

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"}

Release files for chatgpt-bot 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chatgpt-bot 0.2.1
File Size Uploaded
chatgpt_bot-0.2.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chatgpt-bot 0.2.1
File Interpreter ABI Platform
chatgpt_bot-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / chatgpt_bot-0.2.1.tar.gz

Download URL chatgpt_bot-0.2.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8ebafbd6f4d98f095305abecc4d8bf3dd516c9d8df7ebe36f04b8c617c780cd6
BLAKE2b-256 checksum
How to use checksums
172c0f745d2dc683908523504dba97653da7698f910126078ae0feff3132a8a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / chatgpt_bot-0.2.1-py3-none-any.whl

Download URL chatgpt_bot-0.2.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8eca6dd8322efdb3a758b072b45f2cc9c9e698c6ec6a9c2ceceaf93dd3758e37
BLAKE2b-256 checksum
How to use checksums
2a66e74b54cd702e3b917308bc4edadeb7dd6392f1e2bd0c880e215f19684d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page