This commit is contained in:
zhangkuo 2024-07-09 17:59:28 +08:00
parent 30b9d44a11
commit 000a20fd97

View File

@ -37,7 +37,7 @@ export async function requestOpenai(req: NextRequest) {
);
let baseUrl =
serverConfig.baseUrl || OPENAI_BASE_URL;
serverConfig.azureUrl || serverConfig.baseUrl || OPENAI_BASE_URL;
if (!baseUrl.startsWith("http")) {
baseUrl = `https://${baseUrl}`;