This commit is contained in:
sijinhui
2024-07-21 08:37:28 +08:00
parent c8f2d8029b
commit 932c1103f2
6 changed files with 101 additions and 99 deletions

View File

@@ -140,7 +140,7 @@ export const useAppConfig = createPersistStore(
}),
{
name: StoreKey.Config,
version: 3.99,
version: 3.991,
migrate(persistedState, version) {
const state = persistedState as ChatConfig;
@@ -176,7 +176,7 @@ export const useAppConfig = createPersistStore(
// return { ...DEFAULT_CONFIG };
// }
if (version < 3.99) {
if (version < 3.991) {
// state.modelConfig = DEFAULT_CONFIG.modelConfig;
return { ...DEFAULT_CONFIG };
// state.modelConfig.template =

View File

@@ -159,7 +159,8 @@ export const usePromptStore = createPersistStore(
onRehydrateStorage(state) {
// const PROMPT_URL = "https://cos.xiaosi.cc/next/public/prompts.json";
const PROMPT_URL = "https://qn.xiaosi.cc/json/chat/prompts.json";
// const PROMPT_URL = "https://qn.xiaosi.cc/json/chat/prompts.json";
const PROMPT_URL = "./prompts.json"
const GPT_PROMPT_URL =
"https://qn.xiaosi.cc/json/chat/prompt_library.json";