Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
[Fix] baseUrl is empty Yidadaa#3214 (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: coderjun <[email protected]>
  • Loading branch information
H0llyW00dzZ and Ensteinjun authored Nov 10, 2023
1 parent 506894b commit 4581a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function requestOpenai(req: NextRequest) {
);

let baseUrl =
serverConfig.azureUrl ?? serverConfig.baseUrl ?? OPENAI_BASE_URL;
serverConfig.azureUrl || serverConfig.baseUrl || OPENAI_BASE_URL;

if (!baseUrl.startsWith("http")) {
baseUrl = `https://${baseUrl}`;
Expand Down

0 comments on commit 4581a08

Please sign in to comment.