Merge remote-tracking branch 'upstream/main'

This commit is contained in:
DirkSchlossmacher
2023-11-10 15:29:44 +01:00
6 changed files with 16 additions and 7 deletions

View File

@@ -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}`;