mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-25 23:20:19 +09:00
fix: USE_OPENAI_ENDPOINT_FOR_ALL_MODELS authorization
This commit is contained in:
parent
52d5e963dd
commit
a20c57b0e8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user