mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 11:42:23 +08:00
修改chatgpt的api代理地址
This commit is contained in:
parent
4747f91749
commit
80e0e3bc99
|
@ -3,7 +3,7 @@ import store from '../store';
|
|||
export default {
|
||||
chat({ content }, callback) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
const url = 'https://dis.zoai.cc/v1/chat/completions';
|
||||
const url = 'https://api.openai-proxy.com/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