mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
更改chatgpt接口地址
This commit is contained in:
parent
e04fd5a911
commit
4747f91749
8
build.sh
8
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
|
|
@ -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}`);
|
||||
|
|
Loading…
Reference in New Issue
Block a user