Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#3214 from Ensteinjun/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Nov 10, 2023
2 parents 2bfb362 + 6b2db97 commit 78d68a9
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 78d68a9

Please sign in to comment.