forked from XiaoMo/ChatGPT-Next-Web
Merge pull request #2598 from Yidadaa/Yidadaa-patch-1
This commit is contained in:
commit
61852b4021
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user