mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5582] [Issue]: Reasoning-only models fail when configured for agents #3091
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#3091
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 (Aug 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5582
Originally assigned to: @Gunterlie on GitHub.
Summary
Agents fail with an OpenRouter 400 error when GLM 5.3 Flash, a reasoning-only model, is configured as their model. The issue affects multiple agents, including World State and Professor Mari.
Expected behavior
Agents should successfully use reasoning-only models without sending a request that disables mandatory reasoning.
Actual behavior
Agent execution fails because Marinara Engine appears to disable reasoning when calling the model, and OpenRouter rejects the request with HTTP 400.
Steps to reproduce
Environment
Logs, screenshots, or video
World State failed: OpenRouter API error 400: Reasoning is mandatory for this endpoint and cannot be disabled.. Use Retry Failed Agents in the Agents menu to try again.
Additional context
Provider: OpenRouter. Model: z-ai/glm-5.3-flash. The first reporter reproduced the issue with World State Agent 1.0.4 and indicated it may affect multiple or all agents. A second reporter reproduced it with Professor Mari.
Discord thread: Bug report - GLM 5.3 Flash as default agent model
Discord thread link: https://discord.com/channels/1417099416812392641/1542597221466505216
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)
Discord thread transcript (5 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@szaki2 commented on GitHub (Aug 30, 2026):
Not just OpenRouter — the same problem happens with NanoGPT too. Even if I manually change the default chat parameters for the connection, it still doesn’t work. Strangely, I get an error in the connection check, but Professor Mari chats work fine with the same config and the reasoning effort sending switch turned off.
@Gunterlie commented on GitHub (Aug 30, 2026):
Implementation is in progress in #5683. Owner: @Gunterlie.
@Gunterlie commented on GitHub (Aug 30, 2026):
Fixed in #5683 and merged into staging.