Skip to content

Commit 4c261ab

Browse files
committed
switch gpt-5 to default to codex prompt + high reasoning
1 parent 2fc8263 commit 4c261ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/opencode/src/provider/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export namespace ProviderTransform {
9191
}
9292

9393
if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
94-
result["reasoningEffort"] = "minimal"
94+
result["reasoningEffort"] = "high"
9595
if (providerID !== "azure") {
9696
result["textVerbosity"] = "low"
9797
}

packages/opencode/src/session/system.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import PROMPT_GEMINI from "./prompt/gemini.txt"
1414
import PROMPT_ANTHROPIC_SPOOF from "./prompt/anthropic_spoof.txt"
1515
import PROMPT_SUMMARIZE from "./prompt/summarize.txt"
1616
import PROMPT_TITLE from "./prompt/title.txt"
17-
import PROMPT_COPILOT_GPT_5 from "./prompt/copilot-gpt-5.txt"
17+
import PROMPT_CODEX from "./prompt/codex.txt"
1818

1919
export namespace SystemPrompt {
2020
export function header(providerID: string) {
@@ -23,7 +23,7 @@ export namespace SystemPrompt {
2323
}
2424

2525
export function provider(modelID: string) {
26-
if (modelID.includes("gpt-5")) return [PROMPT_COPILOT_GPT_5]
26+
if (modelID.includes("gpt-5")) return [PROMPT_CODEX]
2727
if (modelID.includes("gpt-") || modelID.includes("o1") || modelID.includes("o3")) return [PROMPT_BEAST]
2828
if (modelID.includes("gemini-")) return [PROMPT_GEMINI]
2929
if (modelID.includes("claude")) return [PROMPT_ANTHROPIC]

0 commit comments

Comments
 (0)