Browse Source

fix: dont set reasoning effort to `medium` for `gpt-5-pro` (#3474)

Aurelien Ribon 4 months ago
parent
commit
a606e1d2ec
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/opencode/src/provider/transform.ts

+ 3 - 1
packages/opencode/src/provider/transform.ts

@@ -92,7 +92,9 @@ export namespace ProviderTransform {
     }
     }
 
 
     if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
     if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
-      if (!modelID.includes("codex")) result["reasoningEffort"] = "medium"
+      if (!modelID.includes("codex") && !modelID.includes("gpt-5-pro")) {
+        result["reasoningEffort"] = "medium"
+      }
 
 
       if (providerID !== "azure") {
       if (providerID !== "azure") {
         result["textVerbosity"] = modelID.includes("codex") ? "medium" : "low"
         result["textVerbosity"] = modelID.includes("codex") ? "medium" : "low"