Răsfoiți Sursa

fix: reasoning not supported (#1882)

Aiden Cline 6 luni în urmă
părinte
comite
b5d61b77f7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/opencode/src/provider/transform.ts

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

@@ -90,7 +90,7 @@ export namespace ProviderTransform {
       result["promptCacheKey"] = sessionID
     }
 
-    if (modelID.includes("gpt-5")) {
+    if (modelID.includes("gpt-5") && !modelID.includes("gpt-5-chat")) {
       result["reasoningEffort"] = "minimal"
       if (providerID !== "azure") {
         result["textVerbosity"] = "low"