|
|
@@ -21,14 +21,19 @@ axios.interceptors.request.use((config) => {
|
|
|
}
|
|
|
if (config.url === 'https://gpt.cocorobo.cn/chat' || config.url === 'https://gpt4.cocorobo.cn/imageAnalyse' || config.url === 'https://gpt4.cocorobo.cn/create_free_assistants' || config.url === 'https://gpt4.cocorobo.cn/assistants_completion_response' || config.url.includes('/szdjg/')) {
|
|
|
config.data = config.data //序列化post 参数
|
|
|
+ config.withCredentials = false;
|
|
|
}else if(config.url.indexOf('https://gpt4.cocorobo.cn/')!=-1 || config.url.indexOf('https://claude3.cocorobo.cn/')!=-1 || config.url.indexOf('https://appapi.cocorobo.cn/')!=-1){
|
|
|
config.headers = {
|
|
|
'Content-Type': 'application/json',
|
|
|
}
|
|
|
+ config.withCredentials = false;
|
|
|
+
|
|
|
}else if(config.url.indexOf('https://gpt.cocorobo.cn/')!=-1){
|
|
|
config.headers = {
|
|
|
'Content-Type': 'application/json',
|
|
|
}
|
|
|
+ config.withCredentials = false;
|
|
|
+
|
|
|
} else if (config.data && config.data[0].post == '1' && config.method === 'post') {
|
|
|
config.data = 'mode=' + (Object.values(config.data[0]).join(',')) //序列化post 参数
|
|
|
} else if (config.method === 'post') {
|