mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 12:43:42 +08:00
fix: USE_OPENAI_ENDPOINT_FOR_ALL_MODELS authorization
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user