跳转到主要内容

一个减轻创建ChatGPT机器人痛苦的库。

项目描述

ChatGPT Bot

这是一个小型库,旨在简化创建ChatGPT机器人的过程。它具有一个简单的接口,将对话上下文保存在SQLite数据库中

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

项目详情


下载文件

下载适合您平台文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

ChatGPT_bot-0.2.1.tar.gz (3.0 kB 查看哈希值)

上传时间:

构建分布

ChatGPT_bot-0.2.1-py3-none-any.whl (3.3 kB 查看哈希值)

上传时间: Python 3

支持

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误日志StatusPageStatusPage状态页面