Skip to content

Commit 09c9477

Browse files
committed
Fix default model
1 parent 81dfeb0 commit 09c9477

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/sim/stores/panel/copilot/store.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ const cachedAutoAllowedTools = readAutoAllowedToolsFromStorage()
10421042
// Initial state (subset required for UI/streaming)
10431043
const initialState = {
10441044
mode: 'build' as const,
1045-
selectedModel: 'anthropic/claude-opus-4-6' as CopilotStore['selectedModel'],
1045+
selectedModel: 'anthropic/claude-opus-4-5' as CopilotStore['selectedModel'],
10461046
agentPrefetch: false,
10471047
availableModels: [] as AvailableModel[],
10481048
isLoadingModels: false,
@@ -2381,17 +2381,17 @@ export const useCopilotStore = create<CopilotStore>()(
23812381
(model) => model.id === normalizedSelectedModel
23822382
)
23832383

2384-
// Pick the best default: prefer claude-opus-4-6 with provider priority:
2384+
// Pick the best default: prefer claude-opus-4-5 with provider priority:
23852385
// direct anthropic > bedrock > azure-anthropic > any other.
23862386
let nextSelectedModel = normalizedSelectedModel
23872387
if (!selectedModelExists && normalizedModels.length > 0) {
2388-
let opus46: AvailableModel | undefined
2388+
let opus45: AvailableModel | undefined
23892389
for (const prov of MODEL_PROVIDER_PRIORITY) {
2390-
opus46 = normalizedModels.find((m) => m.id === `${prov}/claude-opus-4-6`)
2391-
if (opus46) break
2390+
opus45 = normalizedModels.find((m) => m.id === `${prov}/claude-opus-4-5`)
2391+
if (opus45) break
23922392
}
2393-
if (!opus46) opus46 = normalizedModels.find((m) => m.id.endsWith('/claude-opus-4-6'))
2394-
nextSelectedModel = opus46 ? opus46.id : normalizedModels[0].id
2393+
if (!opus45) opus45 = normalizedModels.find((m) => m.id.endsWith('/claude-opus-4-5'))
2394+
nextSelectedModel = opus45 ? opus45.id : normalizedModels[0].id
23952395
}
23962396

23972397
set({

0 commit comments

Comments
 (0)