fix(cli): keep mini-fast primary in openai-only install catalog
OPENAI_ONLY_AGENT_OVERRIDES was rewriting explore and librarian back to gpt-5.4 medium for OpenAI-only installs. Match the runtime primary so the install default stays on gpt-5.4-mini-fast.
This commit is contained in:
@@ -206,16 +206,14 @@ exports[`generateModelConfig single native provider uses OpenAI models when only
|
|||||||
"variant": "medium",
|
"variant": "medium",
|
||||||
},
|
},
|
||||||
"explore": {
|
"explore": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4-mini-fast",
|
||||||
"variant": "medium",
|
|
||||||
},
|
},
|
||||||
"hephaestus": {
|
"hephaestus": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4",
|
||||||
"variant": "medium",
|
"variant": "medium",
|
||||||
},
|
},
|
||||||
"librarian": {
|
"librarian": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4-mini-fast",
|
||||||
"variant": "medium",
|
|
||||||
},
|
},
|
||||||
"metis": {
|
"metis": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4",
|
||||||
@@ -296,16 +294,14 @@ exports[`generateModelConfig single native provider uses OpenAI models with isMa
|
|||||||
"variant": "medium",
|
"variant": "medium",
|
||||||
},
|
},
|
||||||
"explore": {
|
"explore": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4-mini-fast",
|
||||||
"variant": "medium",
|
|
||||||
},
|
},
|
||||||
"hephaestus": {
|
"hephaestus": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4",
|
||||||
"variant": "medium",
|
"variant": "medium",
|
||||||
},
|
},
|
||||||
"librarian": {
|
"librarian": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4-mini-fast",
|
||||||
"variant": "medium",
|
|
||||||
},
|
},
|
||||||
"metis": {
|
"metis": {
|
||||||
"model": "openai/gpt-5.4",
|
"model": "openai/gpt-5.4",
|
||||||
|
|||||||
@@ -355,9 +355,9 @@ describe("generateModelConfig", () => {
|
|||||||
// #when generateModelConfig is called
|
// #when generateModelConfig is called
|
||||||
const result = generateModelConfig(config)
|
const result = generateModelConfig(config)
|
||||||
|
|
||||||
// #then explore should use native OpenAI model
|
// #then explore should use native OpenAI mini-fast (primary model)
|
||||||
expect(result.agents?.explore?.model).toBe("openai/gpt-5.4")
|
expect(result.agents?.explore?.model).toBe("openai/gpt-5.4-mini-fast")
|
||||||
expect(result.agents?.explore?.variant).toBe("medium")
|
expect(result.agents?.explore?.variant).toBeUndefined()
|
||||||
})
|
})
|
||||||
|
|
||||||
test("explore uses gpt-5-mini when only Copilot available", () => {
|
test("explore uses gpt-5-mini when only Copilot available", () => {
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ describe("generateModelConfig OpenAI-only model catalog", () => {
|
|||||||
const result = generateModelConfig(config)
|
const result = generateModelConfig(config)
|
||||||
|
|
||||||
// #then
|
// #then
|
||||||
expect(result.agents?.explore).toEqual({ model: "openai/gpt-5.4", variant: "medium" })
|
expect(result.agents?.explore).toEqual({ model: "openai/gpt-5.4-mini-fast" })
|
||||||
expect(result.agents?.librarian).toEqual({ model: "openai/gpt-5.4", variant: "medium" })
|
expect(result.agents?.librarian).toEqual({ model: "openai/gpt-5.4-mini-fast" })
|
||||||
})
|
})
|
||||||
|
|
||||||
test("fills remaining OpenAI-only category gaps with OpenAI models", () => {
|
test("fills remaining OpenAI-only category gaps with OpenAI models", () => {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import type { AgentConfig, CategoryConfig, GeneratedOmoConfig, ProviderAvailability } from "./model-fallback-types"
|
import type { AgentConfig, CategoryConfig, GeneratedOmoConfig, ProviderAvailability } from "./model-fallback-types"
|
||||||
|
|
||||||
const OPENAI_ONLY_AGENT_OVERRIDES: Record<string, AgentConfig> = {
|
const OPENAI_ONLY_AGENT_OVERRIDES: Record<string, AgentConfig> = {
|
||||||
explore: { model: "openai/gpt-5.4", variant: "medium" },
|
explore: { model: "openai/gpt-5.4-mini-fast" },
|
||||||
librarian: { model: "openai/gpt-5.4", variant: "medium" },
|
librarian: { model: "openai/gpt-5.4-mini-fast" },
|
||||||
}
|
}
|
||||||
|
|
||||||
const OPENAI_ONLY_CATEGORY_OVERRIDES: Record<string, CategoryConfig> = {
|
const OPENAI_ONLY_CATEGORY_OVERRIDES: Record<string, CategoryConfig> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user