[GH-ISSUE #6658] [Issue]: Automatic agent runs send unsupported reasoning_effort none to NanoGPT Kimi K3 #3727

Closed
opened 2026-10-21 06:06:34 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Sep 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6658

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Automatic Character Tracker and Illustrator agent runs fail when using NanoGPT with moonshotai/kimi-k3 because the request includes reasoning_effort: "none". Manual runs on the same model succeed because they omit this parameter.

Expected behavior

Character Tracker and Illustrator agents should complete successfully when triggered automatically, as they do when triggered manually.

Actual behavior

Both agents fail with an HTTP 400 error because NanoGPT rejects reasoning_effort: "none" for moonshotai/kimi-k3, which supports only low, high, and max.

Steps to reproduce

  1. Configure a NanoGPT connection using the moonshotai/kimi-k3 model.
  2. Assign the connection to the Character Tracker and Illustrator agents.
  3. Send a chat message that triggers the agents automatically.
  4. Observe that both agent runs fail with a reasoning_effort validation error.

Environment

  • Marinara Engine version: Marinara Engine v2.4.6x
  • Install type: docker
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

NanoGPT API error 400: Invalid value for reasoning_effort on model "moonshotai/kimi-k3": "none". Supported values are: low, high, max. No screenshots or video were provided.

Additional context

The issue affects automatic firing only; manual runs omit reasoning_effort and succeed on the same model. The suspected cause is jsonResponseReasoningOverride() in packages/server/src/services/agents/agent-executor.ts forcing reasoningEffort: "none" and enabling the parameter, while the NanoGPT branch in packages/server/src/services/llm/providers/openai.provider.ts sends it for Kimi K3. A local change excluding Kimi models from that condition resolved the issue; a model-capability lookup was suggested as the durable fix. Agent version and support diagnostics were not provided.

Discord thread: Automatic agent runs fail on NanoGPT + Kimi K3 with reasoning_effort: "none" (400)
Discord thread link: https://discord.com/channels/1417099416812392641/1553012702203617391
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-09-25T11:58:01.786Z] Garlic?: Version: Marinara Engine v2.4.6x (Docker)
Affected component: Character Tracker and Illustrator agents, automatic firing, NanoGPT provider

Summary

When agents fire automatically on a chat turn, jsonResponseReasoningOverride() in agent-executor forces reasoningEffort: "none" and enables the parameter so it's sent. The NanoGPT provider path then emits reasoning_effort: "none" for every model except GLM 5.3. moonshotai/kimi-k3 on NanoGPT accepts only low/high/max, so the request is rejected. Manual runs omit the parameter entirely and succeed on the same model, so the same agent works or fails depending only on how it was triggered.

Reproduction
Connection: NanoGPT, model moonshotai/kimi-k3.
Assign the connection to the Character Tracker and Illustrator agents.
Send a chat message so the agents fire automatically.
Expected

Agents complete, as they do when triggered manually.

Actual

Both agents fail with:

NanoGPT API error 400: Invalid value for reasoning_effort on model "moonshotai/kimi-k3": "none". Supported values are: low, high, max.
Root cause
packages/server/src/services/agents/agent-executor.ts — jsonResponseReasoningOverride() sets reasoningEffort: "none" and enabledParameters.reasoningEffort: true for JSON-output agents.
packages/server/src/services/llm/providers/openai.provider.ts — the NanoGPT branch in the reasoning-parameter builder sends reasoning_effort: "none" whenever an explicit disable is present and the model is not GLM 5.3 (isGlm53MandatoryReasoningModel). There's no equivalent exclusion for Kimi K3.
Suggested fix

Extend the NanoGPT exclusion so models that can't disable reasoning (Kimi K3 alongside GLM 5.3) either omit the parameter or get the lightest supported level, mirroring what the generic custom-gateway branch already does for GLM 5.3. Locally, adding && !/kimi/i.test(model) to the NanoGPT condition resolved it; a model-capability lookup would be the durable version.
[Discord message: https://discord.com/channels/1417099416812392641/1553012702203617391/1553012702203617391]

[2026-09-25T11:58:02.709Z] 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/1553012702203617391/1553012706074689568]

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 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6658 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Automatic Character Tracker and Illustrator agent runs fail when using NanoGPT with moonshotai/kimi-k3 because the request includes reasoning_effort: "none". Manual runs on the same model succeed because they omit this parameter. ## Expected behavior Character Tracker and Illustrator agents should complete successfully when triggered automatically, as they do when triggered manually. ## Actual behavior Both agents fail with an HTTP 400 error because NanoGPT rejects reasoning_effort: "none" for moonshotai/kimi-k3, which supports only low, high, and max. ## Steps to reproduce 1. Configure a NanoGPT connection using the moonshotai/kimi-k3 model. 2. Assign the connection to the Character Tracker and Illustrator agents. 3. Send a chat message that triggers the agents automatically. 4. Observe that both agent runs fail with a reasoning_effort validation error. ## Environment - Marinara Engine version: Marinara Engine v2.4.6x - Install type: docker - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video NanoGPT API error 400: Invalid value for reasoning_effort on model "moonshotai/kimi-k3": "none". Supported values are: low, high, max. No screenshots or video were provided. ## Additional context The issue affects automatic firing only; manual runs omit reasoning_effort and succeed on the same model. The suspected cause is jsonResponseReasoningOverride() in packages/server/src/services/agents/agent-executor.ts forcing reasoningEffort: "none" and enabling the parameter, while the NanoGPT branch in packages/server/src/services/llm/providers/openai.provider.ts sends it for Kimi K3. A local change excluding Kimi models from that condition resolved the issue; a model-capability lookup was suggested as the durable fix. Agent version and support diagnostics were not provided. Discord thread: Automatic agent runs fail on NanoGPT + Kimi K3 with reasoning_effort: "none" (400) Discord thread link: https://discord.com/channels/1417099416812392641/1553012702203617391 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-09-25T11:58:01.786Z] Garlic?: Version: Marinara Engine v2.4.6x (Docker) Affected component: Character Tracker and Illustrator agents, automatic firing, NanoGPT provider Summary When agents fire automatically on a chat turn, jsonResponseReasoningOverride() in agent-executor forces reasoningEffort: "none" and enables the parameter so it's sent. The NanoGPT provider path then emits reasoning_effort: "none" for every model except GLM 5.3. moonshotai/kimi-k3 on NanoGPT accepts only low/high/max, so the request is rejected. Manual runs omit the parameter entirely and succeed on the same model, so the same agent works or fails depending only on how it was triggered. Reproduction Connection: NanoGPT, model moonshotai/kimi-k3. Assign the connection to the Character Tracker and Illustrator agents. Send a chat message so the agents fire automatically. Expected Agents complete, as they do when triggered manually. Actual Both agents fail with: NanoGPT API error 400: Invalid value for reasoning_effort on model "moonshotai/kimi-k3": "none". Supported values are: low, high, max. Root cause packages/server/src/services/agents/agent-executor.ts — jsonResponseReasoningOverride() sets reasoningEffort: "none" and enabledParameters.reasoningEffort: true for JSON-output agents. packages/server/src/services/llm/providers/openai.provider.ts — the NanoGPT branch in the reasoning-parameter builder sends reasoning_effort: "none" whenever an explicit disable is present and the model is not GLM 5.3 (isGlm53MandatoryReasoningModel). There's no equivalent exclusion for Kimi K3. Suggested fix Extend the NanoGPT exclusion so models that can't disable reasoning (Kimi K3 alongside GLM 5.3) either omit the parameter or get the lightest supported level, mirroring what the generic custom-gateway branch already does for GLM 5.3. Locally, adding && !/kimi/i.test(model) to the NanoGPT condition resolved it; a model-capability lookup would be the durable version. [Discord message: https://discord.com/channels/1417099416812392641/1553012702203617391/1553012702203617391] [2026-09-25T11:58:02.709Z] 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/1553012702203617391/1553012706074689568] ``` </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:06:34 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 25, 2026):

Implementation owner: Codex working for @SpicyMarinara. I am addressing this Engine-owned request-parameter bug in a focused PR against staging, reusing the existing provider and generation-limit code and regression suites.

<!-- gh-comment-id:5833522205 --> @SpicyMarinara commented on GitHub (Sep 25, 2026): Implementation owner: Codex working for @SpicyMarinara. I am addressing this Engine-owned request-parameter bug in a focused PR against staging, reusing the existing provider and generation-limit code and regression suites.
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#3727
No description provided.