Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PyFund
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈涛
PyFund
Commits
8aaf80e4
Commit
8aaf80e4
authored
Mar 21, 2023
by
yangmingcheng@matrixone.io
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ss
parent
a0885d49
Pipeline
#403
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
65 deletions
+0
-65
README.md
README.md
+0
-65
No files found.
README.md
View file @
8aaf80e4
# 微信公众号对接chatGPT
## 安装运行
### 安装依赖
1.
配置中科大加速源 (推荐)
```
shell
pip3 config
set
global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
```
2.
安装库
```
shell
pip3
install
-r
requirements.txt
```
### <span id="setings">设置</span>
#### 1.创建配置文件
```
1.复制一份 config.sample.py
2.重名为 config.py
```
#### 2.修改 config.py 的内容
例如:
```
# chatGPT apikey
chatGPT_apikey = "sk-Ol0g4yBAohi51TdOmpfXHBOv1dLLcXUArFLxK"
# chatGPT接口使用的代理
PROXY = "socks5h://192.168.1.104:10801"
# 公众号设置
pub_app_id = 'wx37b939340a4'
pub_app_secret = '0ec16ab7f35d0cff34524c91'
# 公众号加密配置
pub_token = "yasdasd9" # 请填写你在微信公众平台设置的 Token
EncodingAESKey = 'b1rngzANnE69YPpc5'
# 小程序配置
we_app_id = 'wx65db5e0e17'
we_secret = '723f69bedfe7f873c'
app_token = ''
```
### 运行
```
python3 main.py
```
## Docker 运行
1.[
设置
](
#setings
)
步骤完成后
2.
运行
```
docker-compopse up --build -d
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment