feat(explore): add github-copilot/gpt-5-mini to fallback chain (#1091)

* feat(explore): add github-copilot/gpt-5-mini to fallback chain

* test(explore): add tests for github-copilot/gpt-5-mini fallback

---------

Co-authored-by: Suyeol Jeon <devxoul@gmail.com>
This commit is contained in:
YeonGyu-Kim
2026-01-25 14:53:11 +09:00
committed by GitHub
parent 59c98cca77
commit 9f830e7f98
5 changed files with 29 additions and 6 deletions
+11 -2
View File
@@ -59,14 +59,23 @@ describe("AGENT_MODEL_REQUIREMENTS", () => {
const explore = AGENT_MODEL_REQUIREMENTS["explore"]
// #when - accessing explore requirement
// #then - fallbackChain exists with claude-haiku-4-5 as first entry
// #then - fallbackChain exists with claude-haiku-4-5 as first entry, gpt-5-mini as second, gpt-5-nano as third
expect(explore).toBeDefined()
expect(explore.fallbackChain).toBeArray()
expect(explore.fallbackChain.length).toBeGreaterThan(0)
expect(explore.fallbackChain).toHaveLength(3)
const primary = explore.fallbackChain[0]
expect(primary.providers).toContain("anthropic")
expect(primary.providers).toContain("opencode")
expect(primary.model).toBe("claude-haiku-4-5")
const secondary = explore.fallbackChain[1]
expect(secondary.providers).toContain("github-copilot")
expect(secondary.model).toBe("gpt-5-mini")
const tertiary = explore.fallbackChain[2]
expect(tertiary.providers).toContain("opencode")
expect(tertiary.model).toBe("gpt-5-nano")
})
test("multimodal-looker has valid fallbackChain with gemini-3-flash as primary", () => {
+1
View File
@@ -35,6 +35,7 @@ export const AGENT_MODEL_REQUIREMENTS: Record<string, ModelRequirement> = {
explore: {
fallbackChain: [
{ providers: ["anthropic", "opencode"], model: "claude-haiku-4-5" },
{ providers: ["github-copilot"], model: "gpt-5-mini" },
{ providers: ["opencode"], model: "gpt-5-nano" },
],
},