WenXinAPI is a simple wrapper for the official WenXin API
Project description
WenXinAPI
对百度文心一言API的简单封装,支持多用户上下文对话 github地址
安装
python -m pip install --upgrade WenXinAPI
支持Python版本
- 最小版本 - Python3.6
- 推荐 - Python3.8+
使用方法
配置方法
使用示例(异步流式)
from WenXinAPI.V1 import ChatBot
chatbot = ChatBot(
api_key="<your API_KEY>",
secret_key="<your SECRET_KEY>",
engine="<ENGINE you choose>"
)
print(await chatbot.ask("你好!"))
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
revWenXin-1.0.3.tar.gz
(12.1 kB
view hashes)
Built Distribution
revWenXin-1.0.3-py3-none-any.whl
(12.2 kB
view hashes)
Close
Hashes for revWenXin-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef380e683d180c3c5e2ac5c5c748f715b3116148bae9d6564ad36e3d7b910810 |
|
MD5 | 05c940860e49284a05cdf6d252bc6636 |
|
BLAKE2b-256 | 05c2119366ff45b17fcaf5aa71d4551006d21cef6cf241afbc137ecef326a651 |