diff --git a/app/client/api.ts b/app/client/api.ts index aa054560f..42c0348c4 100644 --- a/app/client/api.ts +++ b/app/client/api.ts @@ -260,6 +260,18 @@ export function getHeaders(ignoreHeaders?: boolean) { : isAlibaba ? accessStore.alibabaApiKey : accessStore.openaiApiKey; + if (accessStore.isUseOpenAIEndpointForAllModels) { + return { + isGoogle: false, + isAzure: false, + isAnthropic: false, + isBaidu: false, + isByteDance: false, + isAlibaba: false, + apiKey: accessStore.openaiApiKey, + isEnabledAccessControl, + }; + } return { isGoogle, isAzure,