Merge branch 'Yidadaa:main' into main

This commit is contained in:
Hk-Gosuto
2023-08-10 11:48:57 +08:00
committed by GitHub
4 changed files with 8 additions and 3 deletions

View File

@@ -20,6 +20,10 @@ export async function requestOpenai(req: NextRequest) {
baseUrl = `${PROTOCOL}://${baseUrl}`;
}
if (baseUrl.endsWith('/')) {
baseUrl = baseUrl.slice(0, -1);
}
console.log("[Proxy] ", openaiPath);
console.log("[Base Url]", baseUrl);