mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 20:53:45 +08:00
fix: USE_OPENAI_ENDPOINT_FOR_ALL_MODELS
This commit is contained in:
@@ -54,6 +54,8 @@ const DEFAULT_ACCESS_STATE = {
|
||||
|
||||
// tts config
|
||||
edgeTTSVoiceName: "zh-CN-YunxiNeural",
|
||||
|
||||
isUseOpenAIEndpointForAllModels: false,
|
||||
};
|
||||
|
||||
export const useAccessStore = createPersistStore(
|
||||
@@ -66,6 +68,12 @@ export const useAccessStore = createPersistStore(
|
||||
return get().needCode;
|
||||
},
|
||||
|
||||
useOpenAIEndpointForAllModels() {
|
||||
this.fetch();
|
||||
|
||||
return get().isUseOpenAIEndpointForAllModels;
|
||||
},
|
||||
|
||||
edgeVoiceName() {
|
||||
this.fetch();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user