mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5765] [Issue]: Z.ai GLM 5.3 agent requests fail with thinking parameter error #3186
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#3186
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?
Originally created by @SpicyMarinara on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5765
Originally assigned to: @Romuromylus on GitHub.
Summary
Agent requests using Z.ai GLM 5.3 through a custom OpenAI-compatible endpoint fail with an HTTP 400 thinking-parameter error in Marinara Engine 2.4.5. A later update reportedly fixed chat generation, but agent generation still fails consistently.
Expected behavior
GLM 5.3 agent requests should be accepted and generate responses when the thinking setting is configured as default or with a supported level such as low or high.
Actual behavior
Agent requests fail with HTTP 400: "This model always engages in thinking and cannot be disabled; please use low, high, or max." The reporter tried the default setting, low, and high. The issue initially affected chat generation and agents; after an update, only agents continue to fail.
Steps to reproduce
Environment
Logs, screenshots, or video
Error: "Custom OpenAI-compatible endpoint error 400: This model always engages in thinking and cannot be disabled; please use low, high, or max." Screenshots, video, and support diagnostics were not provided in the Discord context.
Additional context
The affected provider is Z.ai and the model is GLM 5.3. The reporter stated that the issue was previously present for both chat generation and agents, but an update fixed chat generation. Agent version was not provided.
Discord thread: Z.ai api error on GLM 5.3
Discord thread link: https://discord.com/channels/1417099416812392641/1544381560831090818
Requested by: Romu (romulusgray, Discord ID 1015142695129325599)
Discord thread transcript (10 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (Sep 2, 2026):
Fixed by #5766, squash-merged into
stagingasf4367ec50. GLM 5.3 (every variant, not only Flash) now keeps its mandatory reasoning on native Z.AI, NanoGPT, OpenRouter, and remote custom OpenAI-compatible connections; an agent's reasoning-off request becomes the lightest accepted effort instead of a rejected disable, and a configured effort is mapped onto low/high/max. Available on the staging build.@RyushoYosei commented on GitHub (Sep 9, 2026):
Not fully fixed in staging in my experience, as I'm still having it do this for Professor Mari and -only- professor mari, works for anything else. Her explicit connection seems to turn it off no matter what or..is doing something weird.
Release: v2.4.5
Build:
712621dBranch: staging
@SpicyMarinara commented on GitHub (Sep 9, 2026):
GLM-5.3 is having issues with Prof. Mari specifically, and we're not really sure why. Others are looking into it, but it might be just a model-specific thing.