Skip to content

Commit 57aa76b

Browse files
committed
chore: random default model
1 parent 7fa1640 commit 57aa76b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/store/authStore.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ interface AuthState {
5757
checkAgentTool: (tool: string) => void;
5858
}
5959

60+
// random default model selection
61+
const getRandomDefaultModel = (): CloudModelType => {
62+
const models: CloudModelType[] = ['gpt-5.2', 'gpt-5.1', 'gpt-4.1'];
63+
return models[Math.floor(Math.random() * models.length)];
64+
};
65+
6066
// create store
6167
const authStore = create<AuthState>()(
6268
persist(
@@ -70,7 +76,7 @@ const authStore = create<AuthState>()(
7076
language: 'system',
7177
isFirstLaunch: true,
7278
modelType: 'cloud',
73-
cloud_model_type: 'gpt-5.2',
79+
cloud_model_type: getRandomDefaultModel(),
7480
initState: 'permissions',
7581
share_token: null,
7682
localProxyValue: null,

0 commit comments

Comments
 (0)