22fd976eb9
GPT-5.4-mini provides stronger reasoning at comparable speed and cost. Haiku remains as the next fallback priority in the chain. Changes: - DEFAULT_CATEGORIES quick model: anthropic/claude-haiku-4-5 → openai/gpt-5.4-mini - Fallback chain: gpt-5.4-mini → haiku → gemini-3-flash → minimax-m2.5 → gpt-5-nano - OpenAI-only catalog: quick uses gpt-5.4-mini directly - Think-mode: add gpt-5-4-mini and gpt-5-4-nano high variants - Update all documentation references
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import type { AgentConfig, CategoryConfig, GeneratedOmoConfig, ProviderAvailability } from "./model-fallback-types"
|
|
|
|
const OPENAI_ONLY_AGENT_OVERRIDES: Record<string, AgentConfig> = {
|
|
explore: { model: "openai/gpt-5.4", variant: "medium" },
|
|
librarian: { model: "openai/gpt-5.4", variant: "medium" },
|
|
}
|
|
|
|
const OPENAI_ONLY_CATEGORY_OVERRIDES: Record<string, CategoryConfig> = {
|
|
artistry: { model: "openai/gpt-5.4", variant: "xhigh" },
|
|
quick: { model: "openai/gpt-5.4-mini" },
|
|
"visual-engineering": { model: "openai/gpt-5.4", variant: "high" },
|
|
writing: { model: "openai/gpt-5.4", variant: "medium" },
|
|
}
|
|
|
|
export function isOpenAiOnlyAvailability(availability: ProviderAvailability): boolean {
|
|
return (
|
|
availability.native.openai &&
|
|
!availability.native.claude &&
|
|
!availability.native.gemini &&
|
|
!availability.opencodeGo &&
|
|
!availability.opencodeZen &&
|
|
!availability.copilot &&
|
|
!availability.zai &&
|
|
!availability.kimiForCoding
|
|
)
|
|
}
|
|
|
|
export function applyOpenAiOnlyModelCatalog(config: GeneratedOmoConfig): GeneratedOmoConfig {
|
|
return {
|
|
...config,
|
|
agents: {
|
|
...config.agents,
|
|
...OPENAI_ONLY_AGENT_OVERRIDES,
|
|
},
|
|
categories: {
|
|
...config.categories,
|
|
...OPENAI_ONLY_CATEGORY_OVERRIDES,
|
|
},
|
|
}
|
|
}
|