[GH-ISSUE #5765] [Issue]: Z.ai GLM 5.3 agent requests fail with thinking parameter error #3186

Closed
opened 2026-10-21 06:00:21 +07:00 by bsakaguchi · 3 comments
Owner

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

  1. Use Marinara Engine 2.4.5 with a custom OpenAI-compatible endpoint for Z.ai GLM 5.3.
  2. Attempt generation through an Agent with the thinking parameter set to default.
  3. Retry with the thinking parameter set to low or high.
  4. Observe the HTTP 400 thinking-parameter error and failed agent generation.

Environment

  • Marinara Engine version: 2.4.5
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

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)
[2026-09-01T16:20:57.324Z] 🔔 Rachelle Bellwether: Custom OpenAI-compatible endpoint error 400: This model always engages in thinking and cannot be disabled; please use low, high, or max

Even though it is set to default parameter and I tried low and high too.
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544381560831090818]

[2026-09-01T16:20:57.932Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544381563381481633]

[2026-09-01T16:23:10.916Z] DSBwizzard: I have seen a few other reports of this exact thing.

Could you confirm what version of ME you are on? This may be fixed in staging, or if not, it would be very valuable to know.

Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544382121156546610]

[2026-09-01T16:25:27.846Z] 🔔 Rachelle Bellwether: 2.4.5 it says.
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544382695482728579]

[2026-09-01T16:28:55.224Z] DSBwizzard: Thank you! IDK if this has ever been actually *reported* but now it for sure is, so the team will have a look and see what needs to happen or what people can do.
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544383565288968213]

[2026-09-01T16:31:09.816Z] DSBwizzard: jk heres one https://discord.com/channels/1417099416812392641/1542597221466505216 for agents but I think the issue is higher level than that bug (not related to agents only)
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544384129808732300]

[2026-09-01T23:16:29.883Z] 🔔 Rachelle Bellwether: The issue *is* failing consistently with agents
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544486135563157504]

[2026-09-01T23:16:48.063Z] 🔔 Rachelle Bellwether: Update seems to have fixed chat gen but not agents
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544486211815739424]

[2026-09-01T23:26:15.947Z] DSBwizzard: Oh, I see. so this is occurring only wth agents and not elsewhere for you?
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544488593693606038]

[2026-09-02T01:25:59.518Z] 🔔 Rachelle Bellwether: It was previously both but is now just agents.
[Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544518723774185572]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
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 1. Use Marinara Engine 2.4.5 with a custom OpenAI-compatible endpoint for Z.ai GLM 5.3. 2. Attempt generation through an Agent with the thinking parameter set to default. 3. Retry with the thinking parameter set to low or high. 4. Observe the HTTP 400 thinking-parameter error and failed agent generation. ## Environment - Marinara Engine version: 2.4.5 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## 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) <details> <summary>Discord thread transcript (10 messages)</summary> ```text [2026-09-01T16:20:57.324Z] 🔔 Rachelle Bellwether: Custom OpenAI-compatible endpoint error 400: This model always engages in thinking and cannot be disabled; please use low, high, or max Even though it is set to default parameter and I tried low and high too. [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544381560831090818] [2026-09-01T16:20:57.932Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544381563381481633] [2026-09-01T16:23:10.916Z] DSBwizzard: I have seen a few other reports of this exact thing. Could you confirm what version of ME you are on? This may be fixed in staging, or if not, it would be very valuable to know. Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics. [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544382121156546610] [2026-09-01T16:25:27.846Z] 🔔 Rachelle Bellwether: 2.4.5 it says. [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544382695482728579] [2026-09-01T16:28:55.224Z] DSBwizzard: Thank you! IDK if this has ever been actually *reported* but now it for sure is, so the team will have a look and see what needs to happen or what people can do. [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544383565288968213] [2026-09-01T16:31:09.816Z] DSBwizzard: jk heres one https://discord.com/channels/1417099416812392641/1542597221466505216 for agents but I think the issue is higher level than that bug (not related to agents only) [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544384129808732300] [2026-09-01T23:16:29.883Z] 🔔 Rachelle Bellwether: The issue *is* failing consistently with agents [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544486135563157504] [2026-09-01T23:16:48.063Z] 🔔 Rachelle Bellwether: Update seems to have fixed chat gen but not agents [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544486211815739424] [2026-09-01T23:26:15.947Z] DSBwizzard: Oh, I see. so this is occurring only wth agents and not elsewhere for you? [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544488593693606038] [2026-09-02T01:25:59.518Z] 🔔 Rachelle Bellwether: It was previously both but is now just agents. [Discord message: https://discord.com/channels/1417099416812392641/1544381560831090818/1544518723774185572] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:21 +07:00
Author
Owner

@Romuromylus commented on GitHub (Sep 2, 2026):

Fixed by #5766, squash-merged into staging as f4367ec50. 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.

<!-- gh-comment-id:5515375058 --> @Romuromylus commented on GitHub (Sep 2, 2026): Fixed by #5766, squash-merged into `staging` as f4367ec50. 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.
Author
Owner

@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: 712621d
Branch: staging

<!-- gh-comment-id:5604337677 --> @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: 712621d Branch: staging
Author
Owner

@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.

<!-- gh-comment-id:5607904181 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3186
No description provided.