mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 02:46:04 +08:00
fix: #2594 trim the /
This commit is contained in:
@@ -20,6 +20,10 @@ export async function requestOpenai(req: NextRequest) {
|
|||||||
baseUrl = `${PROTOCOL}://${baseUrl}`;
|
baseUrl = `${PROTOCOL}://${baseUrl}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (baseUrl.endsWith('/')) {
|
||||||
|
baseUrl = baseUrl.slice(0, -1);
|
||||||
|
}
|
||||||
|
|
||||||
console.log("[Proxy] ", openaiPath);
|
console.log("[Proxy] ", openaiPath);
|
||||||
console.log("[Base Url]", baseUrl);
|
console.log("[Base Url]", baseUrl);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user