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}`);