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("你好!"))
Metadata
Release files for revWenXin 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| revWenXin-1.0.4.tar.gz | 12.1 kB | Without provenance | Details for revWenXin-1.0.4.tar.gz |
Release files / revWenXin-1.0.4.tar.gz
| Download URL | revWenXin-1.0.4.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1a591c9e62345453960279909b12285e3614e6354d63f382f496c72afd6c9d7
|
|
BLAKE2b-256 checksum How to use checksums |
e74b90d3b3ba7daed266d4a9ee3dc816a67cd410926979dad6c7839bd6504b9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.10
|
Security for revWenXin 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.