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