Update OpenAI defaults to GPT-5.5
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -94,7 +94,7 @@ Examples:
|
||||
$ bunx oh-my-opencode run --on-complete "notify-send Done" "Fix the bug"
|
||||
$ bunx oh-my-opencode run --session-id ses_abc123 "Continue the work"
|
||||
$ bunx oh-my-opencode run --model anthropic/claude-sonnet-4 "Fix the bug"
|
||||
$ bunx oh-my-opencode run --agent Sisyphus --model openai/gpt-5.4 "Implement feature X"
|
||||
$ bunx oh-my-opencode run --agent Sisyphus --model openai/gpt-5.5 "Implement feature X"
|
||||
|
||||
Agent resolution order:
|
||||
1) --agent flag
|
||||
|
||||
@@ -401,7 +401,7 @@ describe("generateModelConfig", () => {
|
||||
expect(result.agents?.sisyphus?.model).toBe("anthropic/claude-opus-4-7")
|
||||
})
|
||||
|
||||
test("Sisyphus resolves to gpt-5.4 medium when only OpenAI is available", () => {
|
||||
test("Sisyphus resolves to gpt-5.5 medium when only OpenAI is available", () => {
|
||||
// #given
|
||||
const config = createConfig({ hasOpenAI: true })
|
||||
|
||||
@@ -409,7 +409,7 @@ describe("generateModelConfig", () => {
|
||||
const result = generateModelConfig(config)
|
||||
|
||||
// #then
|
||||
expect(result.agents?.sisyphus?.model).toBe("openai/gpt-5.4")
|
||||
expect(result.agents?.sisyphus?.model).toBe("openai/gpt-5.5")
|
||||
expect(result.agents?.sisyphus?.variant).toBe("medium")
|
||||
})
|
||||
})
|
||||
@@ -423,7 +423,7 @@ describe("generateModelConfig", () => {
|
||||
const result = generateModelConfig(config)
|
||||
|
||||
// #then
|
||||
expect(result.agents?.atlas?.model).toBe("openai/gpt-5.4")
|
||||
expect(result.agents?.atlas?.model).toBe("openai/gpt-5.5")
|
||||
expect(result.agents?.atlas?.variant).toBe("medium")
|
||||
})
|
||||
|
||||
@@ -435,7 +435,7 @@ describe("generateModelConfig", () => {
|
||||
const result = generateModelConfig(config)
|
||||
|
||||
// #then
|
||||
expect(result.agents?.metis?.model).toBe("openai/gpt-5.4")
|
||||
expect(result.agents?.metis?.model).toBe("openai/gpt-5.5")
|
||||
expect(result.agents?.metis?.variant).toBe("high")
|
||||
})
|
||||
|
||||
@@ -447,7 +447,7 @@ describe("generateModelConfig", () => {
|
||||
const result = generateModelConfig(config)
|
||||
|
||||
// #then
|
||||
expect(result.agents?.["sisyphus-junior"]?.model).toBe("openai/gpt-5.4")
|
||||
expect(result.agents?.["sisyphus-junior"]?.model).toBe("openai/gpt-5.5")
|
||||
expect(result.agents?.["sisyphus-junior"]?.variant).toBe("medium")
|
||||
})
|
||||
})
|
||||
|
||||
@@ -40,10 +40,10 @@ describe("generateModelConfig OpenAI-only model catalog", () => {
|
||||
const result = generateModelConfig(config)
|
||||
|
||||
// #then
|
||||
expect(result.categories?.artistry).toEqual({ model: "openai/gpt-5.4", variant: "xhigh" })
|
||||
expect(result.categories?.artistry).toEqual({ model: "openai/gpt-5.5", variant: "xhigh" })
|
||||
expect(result.categories?.quick).toEqual({ model: "openai/gpt-5.4-mini" })
|
||||
expect(result.categories?.["visual-engineering"]).toEqual({ model: "openai/gpt-5.4", variant: "high" })
|
||||
expect(result.categories?.writing).toEqual({ model: "openai/gpt-5.4", variant: "medium" })
|
||||
expect(result.categories?.["visual-engineering"]).toEqual({ model: "openai/gpt-5.5", variant: "high" })
|
||||
expect(result.categories?.writing).toEqual({ model: "openai/gpt-5.5", variant: "medium" })
|
||||
})
|
||||
|
||||
test("does not apply OpenAI-only overrides when OpenCode Go is also available", () => {
|
||||
|
||||
@@ -6,10 +6,10 @@ const OPENAI_ONLY_AGENT_OVERRIDES: Record<string, AgentConfig> = {
|
||||
}
|
||||
|
||||
const OPENAI_ONLY_CATEGORY_OVERRIDES: Record<string, CategoryConfig> = {
|
||||
artistry: { model: "openai/gpt-5.4", variant: "xhigh" },
|
||||
artistry: { model: "openai/gpt-5.5", 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" },
|
||||
"visual-engineering": { model: "openai/gpt-5.5", variant: "high" },
|
||||
writing: { model: "openai/gpt-5.5", variant: "medium" },
|
||||
}
|
||||
|
||||
export function isOpenAiOnlyAvailability(availability: ProviderAvailability): boolean {
|
||||
|
||||
@@ -74,7 +74,7 @@ export async function promptInstallConfig(detected: DetectedConfig): Promise<Ins
|
||||
message: "Do you have access to OpenCode Zen (opencode/ models)?",
|
||||
options: [
|
||||
{ value: "no", label: "No", hint: "Will use other configured providers" },
|
||||
{ value: "yes", label: "Yes", hint: "opencode/claude-opus-4-7, opencode/gpt-5.4, etc." },
|
||||
{ value: "yes", label: "Yes", hint: "opencode/claude-opus-4-7, opencode/gpt-5.5, etc." },
|
||||
],
|
||||
initialValue: initial.opencodeZen,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user