Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#2598 from Yidadaa/Yidadaa-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Aug 10, 2023
2 parents 9834a67 + 0b7de6f commit 61852b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 61852b4

Please sign in to comment.