Skip to main content

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.2.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

chatgpt_bot-0.2.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page