Google AI模型支持

This commit is contained in:
sijinhui
2024-01-15 23:57:33 +08:00
parent a18c7d7d77
commit 936ae673d3
4 changed files with 6 additions and 6 deletions

View File

@@ -96,9 +96,9 @@ export const useAccessStore = createPersistStore(
}),
{
name: StoreKey.Access,
version: 2,
version: 2.1,
migrate(persistedState, version) {
if (version < 2) {
if (version < 2.1) {
const state = persistedState as {
token: string;
openaiApiKey: string;

View File

@@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore(
}),
{
name: StoreKey.Config,
version: 3.892,
version: 3.893,
migrate(persistedState, version) {
const state = persistedState as ChatConfig;
@@ -168,7 +168,7 @@ export const useAppConfig = createPersistStore(
if (version < 3.8) {
state.lastUpdate = Date.now();
}
if (version < 3.892) {
if (version < 3.893) {
state.lastUpdate = Date.now();
return { ...DEFAULT_CONFIG };
}