Compare commits

..

No commits in common. "main" and "main" have entirely different histories.
main ... main

2 changed files with 5 additions and 18 deletions

View File

@ -13,7 +13,7 @@ steps:
- mkdir wechatbot - mkdir wechatbot
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./wechatbot/chatgpt-arm64 - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./wechatbot/chatgpt-arm64
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./wechatbot/chatgpt-amd64 - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./wechatbot/chatgpt-amd64
- name: upload-tencent-cos - name: upload
image: rainteam/gocos:latest image: rainteam/gocos:latest
settings: settings:
secret_id: secret_id:
@ -24,17 +24,7 @@ steps:
from_secret: cos_bucket_url from_secret: cos_bucket_url
source: wechatbot source: wechatbot
target: cicd target: cicd
- name: upload-upyun
image: rainteam/upcos:latest
settings:
up_operator:
from_secret: up_operator
up_password:
from_secret: up_password
up_bucket:
from_secret: up_bucket
local_base_path: wechatbot
remote_base_path: gitea/devops
- name: gitea_release - name: gitea_release
image: plugins/gitea-release image: plugins/gitea-release
pull: if-not-exists pull: if-not-exists
@ -43,8 +33,7 @@ steps:
from_secret: gitea_token from_secret: gitea_token
base_url: https://git.rainss.cn base_url: https://git.rainss.cn
files: files:
- ./wechatbot/chatgpt-arm64 - chatgpt-arm64
- ./wechatbot/chatgpt-amd64
checksum: checksum:
- sha256 - sha256
when: when:

View File

@ -2,9 +2,7 @@
"api_key": "", # chatgpt api key "api_key": "", # chatgpt api key
"auto_pass": true, # 是否自动通过好友申请 "auto_pass": true, # 是否自动通过好友申请
"bing_chat_url": "" # New Bing 聊天接口 "bing_chat_url": "" # New Bing 聊天接口
"gpt_chat_url": "https://gpt.rains.work/v1/chat/", # Gpt 聊天接口
"bing_chat_wake_word": "#bing", # new Bing唤醒词 "bing_chat_wake_word": "#bing", # new Bing唤醒词
"gpt_chat_wake_word": "#gpt" # ChatGPT唤醒词 "gpt_chat_wake_word": "#gpt" # ChatGPT唤醒词
"gpt_message_cache": 20, # 消息缓存数量 "gpt_message_cache": 20 # 消息缓存数量
"gpt_clean_context": "#cls" # 清理Gpt上下文 }
}