mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-26 07:30:18 +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
|
: isAlibaba
|
||||||
? accessStore.alibabaApiKey
|
? accessStore.alibabaApiKey
|
||||||
: accessStore.openaiApiKey;
|
: accessStore.openaiApiKey;
|
||||||
|
if (accessStore.isUseOpenAIEndpointForAllModels) {
|
||||||
|
return {
|
||||||
|
isGoogle: false,
|
||||||
|
isAzure: false,
|
||||||
|
isAnthropic: false,
|
||||||
|
isBaidu: false,
|
||||||
|
isByteDance: false,
|
||||||
|
isAlibaba: false,
|
||||||
|
apiKey: accessStore.openaiApiKey,
|
||||||
|
isEnabledAccessControl,
|
||||||
|
};
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
isGoogle,
|
isGoogle,
|
||||||
isAzure,
|
isAzure,
|
||||||
|
Loading…
Reference in New Issue
Block a user