Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/v3ucn/Python_ChatGPT_ForDingding_OpenAi
基于Python3.10的OpenAI聊天机器人ChatGPT模型接入钉钉Dingding机器人单聊/群聊功能
https://github.com/v3ucn/Python_ChatGPT_ForDingding_OpenAi
Last synced: 3 days ago
JSON representation
基于Python3.10的OpenAI聊天机器人ChatGPT模型接入钉钉Dingding机器人单聊/群聊功能
- Host: GitHub
- URL: https://github.com/v3ucn/Python_ChatGPT_ForDingding_OpenAi
- Owner: v3ucn
- Created: 2022-12-08T00:45:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T03:22:59.000Z (about 1 year ago)
- Last Synced: 2024-08-02T07:02:17.401Z (3 months ago)
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 64
- Watchers: 6
- Forks: 22
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python_ChatGPT_ForDingding_OpenAi
## 基于 https://github.com/rawandahmad698/PyChatGPT
## 启动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)
```