mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-26 10:39:21 +08:00
serverConfig.azureUrl调整
This commit is contained in:
@@ -37,7 +37,7 @@ export async function requestOpenai(req: NextRequest) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let baseUrl =
|
let baseUrl =
|
||||||
serverConfig.azureUrl || serverConfig.baseUrl || OPENAI_BASE_URL;
|
serverConfig.baseUrl || OPENAI_BASE_URL;
|
||||||
|
|
||||||
if (!baseUrl.startsWith("http")) {
|
if (!baseUrl.startsWith("http")) {
|
||||||
baseUrl = `https://${baseUrl}`;
|
baseUrl = `https://${baseUrl}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user