Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/llm/autodetect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ function modelSupportsReasoning(
if (!model) {
return false;
}
if ("anthropic" === model.underlyingProviderName) {
if (
model.model.includes("claude") &&
!model.model.includes("-3-") &&
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guard now disables reasoning for Claude 3.7 models because their identifiers contain "-3-", so modelSupportsReasoning returns false and reasoning is incorrectly turned off for those models.

Prompt for AI agents
Address the following comment on core/llm/autodetect.ts at line 149:

<comment>This guard now disables reasoning for Claude 3.7 models because their identifiers contain &quot;-3-&quot;, so modelSupportsReasoning returns false and reasoning is incorrectly turned off for those models.</comment>

<file context>
@@ -144,7 +144,11 @@ function modelSupportsReasoning(
-  if (&quot;anthropic&quot; === model.underlyingProviderName) {
+  if (
+    model.model.includes(&quot;claude&quot;) &amp;&amp;
+    !model.model.includes(&quot;-3-&quot;) &amp;&amp;
+    !model.model.includes(&quot;-3.5-&quot;)
+  ) {
</file context>
Fix with Cubic

!model.model.includes("-3.5-")
) {
return true;
}
if (model.model.includes("deepseek-r")) {
Expand Down
Loading