使用腾讯混元大模型。
如果你不能访问腾讯混元大模型,可以使用 mock_server.py
模拟。
pip install --upgrade tencentcloud-sdk-python
export TENCENTCLOUD_SECRET_ID=你的腾讯云 SecretID
export TENCENTCLOUD_SECRET_KEY=你的腾讯云 SecretKey
python chat_std.py
python mock_server.py
修改 chat_std.py
中被注释的相关行,打开另一个终端,
python chat_std.py