fix: USE_OPENAI_ENDPOINT_FOR_ALL_MODELS

This commit is contained in:
Hk-Gosuto
2024-06-07 18:04:05 +08:00
parent c289305b05
commit 740ece39da
6 changed files with 16 additions and 3 deletions

View File

@@ -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();