更改chatgpt接口地址

This commit is contained in:
xiaoqi.cxq 2023-08-08 13:25:43 +08:00
parent e04fd5a911
commit 4747f91749
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

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