mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6965] [MERGED] fix(llm): turn off reasoning for GLM on NanoGPT when it's set to Off #7406
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7406
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6965
Author: @SpicyMarinara
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/reasoning-off📝 Commits (2)
d1a9aeffix(llm): send NanoGPT's reasoning off switch for GLM modelse74c7a6Merge remote-tracking branch 'origin/staging' into fix/reasoning-off📊 Changes
3 files changed (+71 additions, -0 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/services/llm/providers/glm-request-compat.ts(+3 -0)➕
scripts/regressions/nanogpt-glm-reasoning-off.regression.ts(+66 -0)📄 Description
Linked issue
Closes #6961
Why this change
With GLM 4.7 or 5.1 on NanoGPT, setting Reasoning Effort to Off did nothing. The model kept reasoning and could use up the whole reply budget, which ended in "Raise Max Tokens or lower Reasoning Effort".
Off wasn't lost anywhere. For GLM on NanoGPT, Marinara only sent
enable_thinking: false, which NanoGPT doesn't document. NanoGPT's documented way to turn reasoning off isreasoning_effort: "none". Marinara already sends that for every other NanoGPT model, but the GLM path returned before reaching that code.What changed
glm-request-compat.ts: an explicit Off on NanoGPT now also sendsreasoning_effort: "none", alongsideenable_thinking: false.nanogpt-glm-reasoning-off.regression.ts: runs the real parameter resolution and provider against a mock NanoGPT server for GLM 4.7 and 5.1. It covers Off taken from the connection, Off set on the chat, and a chat that turns reasoning back on.About the second part of the report ("chats don't inherit the connection defaults"): I couldn't find a separate bug. A chat with no preset parameters does take Off from the connection's Default Chat Parameters, and the regression checks that. It most likely looked broken because the model kept reasoning anyway. A value saved on the chat itself still wins on purpose, and "Reset to defaults" clears it.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What I ran (not a replacement for the checklist):
pnpm checkpasses.reasoning_effortmissing) and passes with it.To check by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG entry only.
UI evidence (if applicable)
Server-side only.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.