Skip to content

Commit 6844738

Browse files
nathannewyenclaude
andcommitted
fix: remove opencode fallback in getSmallModel
Removes the automatic fallback to OpenCode's gpt-5-nano when no small model is found. Callers already handle undefined by falling back to the user's main model, matching the documented behavior. Fixes anomalyco#8609 Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 7e016fd commit 6844738

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎packages/opencode/src/provider/provider.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,12 +1141,7 @@ export namespace Provider {
11411141
}
11421142
}
11431143

1144-
// Check if opencode provider is available before using it
1145-
const opencodeProvider = await state().then((state) => state.providers["opencode"])
1146-
if (opencodeProvider && opencodeProvider.models["gpt-5-nano"]) {
1147-
return getModel("opencode", "gpt-5-nano")
1148-
}
1149-
1144+
// Return undefined to let callers fall back to main model as documented
11501145
return undefined
11511146
}
11521147

0 commit comments

Comments
 (0)