Skip to content

seven1240/hychat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

一个简单的聊天程序

使用腾讯混元大模型。

如果你不能访问腾讯混元大模型,可以使用 mock_server.py 模拟。

准备

pip install --upgrade tencentcloud-sdk-python

使用方法

export TENCENTCLOUD_SECRET_ID=你的腾讯云 SecretID
export TENCENTCLOUD_SECRET_KEY=你的腾讯云 SecretKey
python chat_std.py

使用 Mock Server:

python mock_server.py

修改 chat_std.py中被注释的相关行,打开另一个终端,

python chat_std.py

联系我

https://www.dujinfang.com

About

简单的聊天机器人程序源代码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages