Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
b0476a06
Unverified
Commit
b0476a06
authored
Nov 05, 2025
by
Keyang Ru
Committed by
GitHub
Nov 05, 2025
Browse files
[router][quick fix] Add minimal option for reasoning effort in spec (#12711)
parent
ffba61a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
sgl-router/src/protocols/responses.rs
sgl-router/src/protocols/responses.rs
+1
-0
sgl-router/src/routers/grpc/harmony/builder.rs
sgl-router/src/routers/grpc/harmony/builder.rs
+3
-0
No files found.
sgl-router/src/protocols/responses.rs
View file @
b0476a06
...
...
@@ -85,6 +85,7 @@ fn default_reasoning_effort() -> Option<ReasoningEffort> {
#[derive(Debug,
Clone,
Deserialize,
Serialize)]
#[serde(rename_all
=
"snake_case"
)]
pub
enum
ReasoningEffort
{
Minimal
,
Low
,
Medium
,
High
,
...
...
sgl-router/src/routers/grpc/harmony/builder.rs
View file @
b0476a06
...
...
@@ -277,6 +277,8 @@ impl HarmonyBuilder {
"high"
=>
ReasoningEffort
::
High
,
"medium"
=>
ReasoningEffort
::
Medium
,
"low"
=>
ReasoningEffort
::
Low
,
// Harmony does not support minimal reasoning effort
"minimal"
=>
ReasoningEffort
::
Low
,
_
=>
ReasoningEffort
::
Medium
,
});
...
...
@@ -302,6 +304,7 @@ impl HarmonyBuilder {
ResponsesReasoningEffort
::
High
=>
ReasoningEffort
::
High
,
ResponsesReasoningEffort
::
Medium
=>
ReasoningEffort
::
Medium
,
ResponsesReasoningEffort
::
Low
=>
ReasoningEffort
::
Low
,
ResponsesReasoningEffort
::
Minimal
=>
ReasoningEffort
::
Low
,
});
self
.build_system_message
(
reasoning_effort
,
with_custom_tools
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment