Skip to content

基于Python3.10的OpenAI聊天机器人ChatGPT模型接入钉钉Dingding机器人单聊/群聊功能

Notifications You must be signed in to change notification settings

v3ucn/Python_ChatGPT_ForDingding_OpenAi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Python_ChatGPT_ForDingding_OpenAi

启动server端接受C端的钉钉机器人返回的信息

python3 server.py

使用Dingding实例向C端发送信息

dingding = DingDing("appkey","appSecret")

chat = Chat(email="OpenAi邮箱", password="OpenAi密码",proxies="代理地址")

answer = chat.ask("你好")

# 单聊
#dingding.send_message('uid',answer)

# 群聊
#dingding.send_user('uid',answer)

print(answer)

About

基于Python3.10的OpenAI聊天机器人ChatGPT模型接入钉钉Dingding机器人单聊/群聊功能

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages