修改chatgpt的api代理地址

This commit is contained in:
xiaoqi.cxq 2023-08-26 01:11:16 +08:00
parent 4747f91749
commit 80e0e3bc99

View File

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