close
Skip to content

feat(neuralwatt): expose full GLM 5.2 reasoning effort scale - #2645

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
monotykamary:neuralwatt-glm-5-2-reasoning-efforts
Jun 17, 2026
Merged

feat(neuralwatt): expose full GLM 5.2 reasoning effort scale#2645
rekram1-node merged 1 commit into
anomalyco:devfrom
monotykamary:neuralwatt-glm-5-2-reasoning-efforts

Conversation

@monotykamary

@monotykamary monotykamary commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #2636 (comment). GLM 5.2 accepts the OpenAI-standard reasoning_effort field and supports a wider depth range than the three levels (low, medium, high) that were advertised in the merged model file. This exposes the full effort scale.

Context

Per the Neuralwatt chat-completions docs, the gateway accepts the full OpenAI-style reasoning_effort scale and normalizes it onto GLM-5.2's two native levels (high and max):

Effort Resolves to Behavior
minimal (skips reasoning) Equivalent to enable_thinking: false
low high
medium high
high high Enhanced reasoning — balanced depth/latency
xhigh max Deepest — best for complex math, multi-step planning, agentic/coding tasks (default when reasoning_effort is unset)

The pi provider extension (pi-neuralwatt-provider/patch.json) already exposes all five pi reasoning tiers via thinkingLevelMap (minimal, low, medium, high, xhigh, with xhigh mapped to max). The models.dev catalog was the side missing the extra efforts.

Changes

  • providers/neuralwatt/models/glm-5.2.toml
    • reasoning_options effort.values: ["low", "medium", "high"]["minimal", "low", "medium", "high", "xhigh"]

No other GLM-5.2 fields change. The other neuralwatt models already match the provider data and are unaffected.

Validation

bun validate passes (exit 0); the generated glm-5.2 entry now lists minimal and xhigh in its reasoning_options.values.

GLM-5.2 accepts the OpenAI-standard reasoning_effort field and supports
a wider depth range than the three levels previously advertised. Per
the Neuralwatt chat-completions docs [1], the gateway accepts and
normalizes the full scale:

  minimal -> skips the reasoning phase entirely (eq enable_thinking: false)
  low     -> mapped to high
  medium  -> mapped to high
  high    -> enhanced reasoning (balanced)
  xhigh   -> mapped to max (deepest; best for math/planning/agentic tasks)

The provider's thinkingLevelMap (pi-neuralwatt-provider/patch.json) already
exposes all five pi tiers, so mirror that here by adding minimal and xhigh
to the effort values for glm-5.2.

[1] https://portal.neuralwatt.com/docs/api/chat-completions
@monotykamary

Copy link
Copy Markdown
Contributor Author

@rekram1-node i got another one papi 📦

@rekram1-node
rekram1-node merged commit 8f5ae25 into anomalyco:dev Jun 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants