Skip to content

Commit bd3a255

Browse files
engineerCopilot
andcommitted
fix(provider): disable small-model override for copilot
Co-authored-by: Copilot <[email protected]>
1 parent 9140016 commit bd3a255

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,10 @@ export namespace Provider {
14401440
return getModel(parsed.providerID, parsed.modelID)
14411441
}
14421442

1443+
// GitHub Copilot frequently rejects "small" defaults for title generation.
1444+
// Fall back to the active session model instead.
1445+
if (providerID.startsWith("github-copilot")) return undefined
1446+
14431447
const provider = await state().then((state) => state.providers[providerID])
14441448
if (provider) {
14451449
let priority = [
@@ -1454,10 +1458,6 @@ export namespace Provider {
14541458
if (providerID.startsWith("opencode")) {
14551459
priority = ["gpt-5-nano"]
14561460
}
1457-
if (providerID.startsWith("github-copilot")) {
1458-
// prioritize broadly available low-cost models for github copilot
1459-
priority = ["claude-haiku-4.5", "gpt-5-nano", ...priority]
1460-
}
14611461
for (const item of priority) {
14621462
if (providerID === ProviderID.amazonBedrock) {
14631463
const crossRegionPrefixes = ["global.", "us.", "eu."]

0 commit comments

Comments
 (0)