mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
fix(upstage): map 'ultra' reasoning effort to Solar's high
Main added max/ultra effort levels (#62650) after this PR branched; without the mapping 'ultra' silently fell through to the medium default. Matches the xhigh/max collapse-to-strongest convention used by other profiles.
This commit is contained in:
parent
0d01831919
commit
f88cac71bc
2 changed files with 4 additions and 3 deletions
|
|
@ -75,8 +75,8 @@ class UpstageProfile(ProviderProfile):
|
|||
if reasoning_config.get("enabled") is False:
|
||||
return {}, top_level
|
||||
|
||||
# Map Hermes' effort vocabulary onto Solar's accepted set. xhigh/max
|
||||
# collapse to high (Solar's strongest). minimal → off (omit). An
|
||||
# Map Hermes' effort vocabulary onto Solar's accepted set. xhigh/max/
|
||||
# ultra collapse to high (Solar's strongest). minimal → off (omit). An
|
||||
# enabled request with no recognised effort uses the default effort.
|
||||
effort = (reasoning_config.get("effort") or "").strip().lower()
|
||||
mapped = {
|
||||
|
|
@ -86,6 +86,7 @@ class UpstageProfile(ProviderProfile):
|
|||
"high": "high",
|
||||
"xhigh": "high",
|
||||
"max": "high",
|
||||
"ultra": "high",
|
||||
}.get(effort, _DEFAULT_REASONING_EFFORT)
|
||||
|
||||
if mapped:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue