mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
Update common.ts
This commit is contained in:
parent
c17ed54e85
commit
e021555e09
@ -28,10 +28,8 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se
|
||||
}
|
||||
|
||||
let path = `${req.nextUrl.pathname}`.replaceAll("/api/openai/", "");
|
||||
let baseUrl = serverConfig.azureUrl;
|
||||
/* let baseUrl =
|
||||
let baseUrl =
|
||||
(isAzure ? serverConfig.azureUrl : serverConfig.baseUrl) || OPENAI_BASE_URL;
|
||||
*/
|
||||
if (!baseUrl.startsWith("http")) {
|
||||
baseUrl = `https://${baseUrl}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user