feat(agents): add grok-code-fast-1 as primary model for explore agent

This commit is contained in:
YeonGyu-Kim
2026-02-02 21:13:45 +09:00
parent 159fccddcf
commit d80adac3fc
2 changed files with 8 additions and 8 deletions

View File

@@ -59,24 +59,24 @@ describe("AGENT_MODEL_REQUIREMENTS", () => {
expect(primary.model).toBe("glm-4.7")
})
test("explore has valid fallbackChain with claude-haiku-4-5 as primary", () => {
test("explore has valid fallbackChain with grok-code-fast-1 as primary", () => {
// given - explore agent requirement
const explore = AGENT_MODEL_REQUIREMENTS["explore"]
// when - accessing explore requirement
// then - fallbackChain exists with claude-haiku-4-5 as first entry, gpt-5-mini as second, gpt-5-nano as third
// then - fallbackChain exists with grok-code-fast-1 as first entry, claude-haiku-4-5 as second
expect(explore).toBeDefined()
expect(explore.fallbackChain).toBeArray()
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")
expect(primary.providers).toContain("github-copilot")
expect(primary.model).toBe("grok-code-fast-1")
const secondary = explore.fallbackChain[1]
expect(secondary.providers).toContain("github-copilot")
expect(secondary.model).toBe("gpt-5-mini")
expect(secondary.providers).toContain("anthropic")
expect(secondary.providers).toContain("opencode")
expect(secondary.model).toBe("claude-haiku-4-5")
const tertiary = explore.fallbackChain[2]
expect(tertiary.providers).toContain("opencode")

View File

@@ -44,8 +44,8 @@ export const AGENT_MODEL_REQUIREMENTS: Record<string, ModelRequirement> = {
},
explore: {
fallbackChain: [
{ providers: ["github-copilot"], model: "grok-code-fast-1" },
{ providers: ["anthropic", "opencode"], model: "claude-haiku-4-5" },
{ providers: ["github-copilot"], model: "gpt-5-mini" },
{ providers: ["opencode"], model: "gpt-5-nano" },
],
},