mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 08:07:34 +08:00
using default azure api-version value
This commit is contained in:
@@ -58,7 +58,9 @@ export async function requestOpenai(req: NextRequest) {
|
||||
);
|
||||
|
||||
if (isAzure) {
|
||||
const azureApiVersion = req?.nextUrl?.searchParams?.get("api-version");
|
||||
const azureApiVersion =
|
||||
req?.nextUrl?.searchParams?.get("api-version") ||
|
||||
serverConfig.azureApiVersion;
|
||||
baseUrl = baseUrl.split("/deployments").shift() as string;
|
||||
path = `${req.nextUrl.pathname.replaceAll(
|
||||
"/api/azure/",
|
||||
|
Reference in New Issue
Block a user