修复 VISION_MDOELS 在 docker 运行阶段不生效的问题

This commit is contained in:
code-october
2024-12-30 08:58:41 +00:00
parent d56566cd73
commit 57c88c0717
5 changed files with 12 additions and 5 deletions

View File

@@ -131,6 +131,7 @@ const DEFAULT_ACCESS_STATE = {
disableFastLink: false,
customModels: "",
defaultModel: "",
visionModels: "",
// tts config
edgeTTSVoiceName: "zh-CN-YunxiNeural",
@@ -145,7 +146,10 @@ export const useAccessStore = createPersistStore(
return get().needCode;
},
setVisionModels() {
this.fetch();
return get().visionModels;
},
edgeVoiceName() {
this.fetch();