Skip to content

Commit 96a00ff

Browse files
committed
core: update github copilot model model priority list
1 parent 02540b2 commit 96a00ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,10 @@ export namespace Provider {
10291029
if (providerID.startsWith("opencode")) {
10301030
priority = ["gpt-5-nano"]
10311031
}
1032+
if (providerID.startsWith("github-copilot")) {
1033+
// prioritize free models for github copilot
1034+
priority = ["claude-haiku-4.5", "gpt-5-mini", ...priority]
1035+
}
10321036
for (const item of priority) {
10331037
for (const model of Object.keys(provider.models)) {
10341038
if (model.includes(item)) return getModel(providerID, model)

0 commit comments

Comments
 (0)