一个减轻创建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 查看哈希值)
关闭
ChatGPT_bot-0.2.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 8ebafbd6f4d98f095305abecc4d8bf3dd516c9d8df7ebe36f04b8c617c780cd6 |
|
MD5 | b6091f23355fd266da346cc1664febb0 |
|
BLAKE2b-256 | 172c0f745d2dc683908523504dba97653da7698f910126078ae0feff3132a8a3 |