ai请求地址修改
This commit is contained in:
@@ -57,10 +57,10 @@ export function createAiServiceConfig(env: Env.ImportMeta) {
|
|||||||
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
|
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
|
||||||
}
|
}
|
||||||
if(env.DEV){
|
if(env.DEV){
|
||||||
aiUrl = 'http://192.168.0.230:8085/proxy-ai';
|
aiUrl = 'https://mocaiapi.djxinxi.net/proxy-ai';
|
||||||
}else{
|
}else{
|
||||||
// url = window.location.origin;
|
// url = window.location.origin;
|
||||||
aiUrl = 'http://192.168.0.230:8085/proxy-ai';
|
aiUrl = 'https://mocaiapi.djxinxi.net/proxy-ai';
|
||||||
}
|
}
|
||||||
const httpConfig: App.Service.SimpleServiceConfig = {
|
const httpConfig: App.Service.SimpleServiceConfig = {
|
||||||
baseURL: aiUrl,
|
baseURL: aiUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user