Skip to content

Commit dccd2c0

Browse files
committed
chore: config version migrate
1 parent 6052c4c commit dccd2c0

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

app/store/config.ts

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -201,30 +201,9 @@ export const useAppConfig = createPersistStore(
201201
}),
202202
{
203203
name: StoreKey.Config,
204-
version: 0.43,
204+
version: 0.44,
205205
migrate: (persistedState, version) => {
206-
if (version < 0.41) {
207-
return {
208-
...DEFAULT_CONFIG,
209-
...(persistedState as any),
210-
models: DEFAULT_MODELS as any as ModelRecord[],
211-
212-
modelConfig: {
213-
model: DEFAULT_MODELS[0].name,
214-
215-
// Chat configs
216-
temperature: 1.0,
217-
top_p: 1,
218-
max_tokens: 4000,
219-
presence_penalty: 0,
220-
frequency_penalty: 0,
221-
222-
// Use recommended config to overwrite above parameters
223-
...DEFAULT_MODELS[0].recommended_config,
224-
},
225-
};
226-
}
227-
if (version < 0.42) {
206+
if (version < 0.44) {
228207
return {
229208
...DEFAULT_CONFIG,
230209
...(persistedState as any),

0 commit comments

Comments
 (0)