From 4747f91749c66822db4cb7e07dd732f4d382a8ca Mon Sep 17 00:00:00 2001 From: "xiaoqi.cxq" Date: Tue, 8 Aug 2023 13:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9chatgpt=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 8 ++++++-- src/services/chatGptSvc.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 86e27644..e2e933f0 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,8 @@ -docker build -t mafgwo/stackedit:$1 . -docker tag mafgwo/stackedit:$1 registry.cn-hangzhou.aliyuncs.com/mafgwo/stackedit:$1 +docker build -t mafgwo/stackedit . +docker tag mafgwo/stackedit mafgwo/stackedit:$1 . +docker tag mafgwo/stackedit registry.cn-hangzhou.aliyuncs.com/mafgwo/stackedit +docker tag mafgwo/stackedit registry.cn-hangzhou.aliyuncs.com/mafgwo/stackedit:$1 +docker push mafgwo/stackedit +docker push registry.cn-hangzhou.aliyuncs.com/mafgwo/stackedit docker push mafgwo/stackedit:$1 docker push registry.cn-hangzhou.aliyuncs.com/mafgwo/stackedit:$1 \ No newline at end of file diff --git a/src/services/chatGptSvc.js b/src/services/chatGptSvc.js index effcaf51..286ea0f3 100644 --- a/src/services/chatGptSvc.js +++ b/src/services/chatGptSvc.js @@ -3,7 +3,7 @@ import store from '../store'; export default { chat({ content }, callback) { const xhr = new XMLHttpRequest(); - const url = 'https://fd.52ai.pw/v1/chat/completions'; + const url = 'https://dis.zoai.cc/v1/chat/completions'; xhr.open('POST', url); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.setRequestHeader('Authorization', `Bearer ${window.my_api_key}`);