Skip to content

Commit 7eb276d

Browse files
committed
fix:make reasoning effort configurable
Signed-off-by: OneZero-Y <[email protected]>
1 parent 967742e commit 7eb276d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/semantic-router/pkg/extproc/reason_mode_selector.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ func getChatTemplateKwargs(model string, useReasoning bool) map[string]interface
6363
}
6464
}
6565

66-
// Default: no chat template kwargs
66+
// Default: use thinking for all other models when reasoning is enabled
67+
if useReasoning {
68+
return map[string]interface{}{
69+
"thinking": useReasoning,
70+
}
71+
}
72+
73+
// No chat template kwargs when reasoning is disabled
6774
return nil
6875
}
6976

0 commit comments

Comments
 (0)