Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web into ChatGPTNextWeb-main

This commit is contained in:
A-Cepheus
2024-04-23 17:23:51 +08:00
13 changed files with 639 additions and 320 deletions

View File

@@ -120,7 +120,7 @@ function fillTemplateWith(input: string, modelConfig: ModelConfig) {
ServiceProvider: serviceProvider,
cutoff,
model: modelConfig.model,
time: new Date().toLocaleString(),
time: new Date().toString(),
lang: getLang(),
input: input,
};

View File

@@ -104,6 +104,7 @@ export const useSyncStore = createPersistStore(
setLocalAppState(localState);
} catch (e) {
console.log("[Sync] failed to get remote state", e);
throw e;
}
await client.set(config.username, JSON.stringify(localState));