Browse Source

codex does not have reasoning effort set

Dax Raad 4 months ago
parent
commit
56528493dc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      packages/opencode/src/provider/transform.ts

+ 4 - 2
packages/opencode/src/provider/transform.ts

@@ -92,14 +92,16 @@ export namespace ProviderTransform {
     }
     }
 
 
     if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
     if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
-      result["reasoningEffort"] = "medium"
+      if (!modelID.includes("codex")) result["reasoningEffort"] = "medium"
+
       if (providerID !== "azure") {
       if (providerID !== "azure") {
         result["textVerbosity"] = modelID.includes("codex") ? "medium" : "low"
         result["textVerbosity"] = modelID.includes("codex") ? "medium" : "low"
       }
       }
+
       if (providerID === "opencode") {
       if (providerID === "opencode") {
         result["promptCacheKey"] = sessionID
         result["promptCacheKey"] = sessionID
         result["include"] = ["reasoning.encrypted_content"]
         result["include"] = ["reasoning.encrypted_content"]
-        result["reasoningSummary"] = "detailed"
+        result["reasoningSummary"] = "auto"
       }
       }
     }
     }
     return result
     return result