mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-08 09:59:35 +00:00
chore: random default model
This commit is contained in:
parent
7fa16409ea
commit
57aa76bbbe
1 changed files with 7 additions and 1 deletions
|
|
@ -57,6 +57,12 @@ interface AuthState {
|
|||
checkAgentTool: (tool: string) => void;
|
||||
}
|
||||
|
||||
// random default model selection
|
||||
const getRandomDefaultModel = (): CloudModelType => {
|
||||
const models: CloudModelType[] = ['gpt-5.2', 'gpt-5.1', 'gpt-4.1'];
|
||||
return models[Math.floor(Math.random() * models.length)];
|
||||
};
|
||||
|
||||
// create store
|
||||
const authStore = create<AuthState>()(
|
||||
persist(
|
||||
|
|
@ -70,7 +76,7 @@ const authStore = create<AuthState>()(
|
|||
language: 'system',
|
||||
isFirstLaunch: true,
|
||||
modelType: 'cloud',
|
||||
cloud_model_type: 'gpt-5.2',
|
||||
cloud_model_type: getRandomDefaultModel(),
|
||||
initState: 'permissions',
|
||||
share_token: null,
|
||||
localProxyValue: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue