mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 14:33:41 +08:00
Google AI模型支持
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user