[GH-ISSUE #173] [Issue]: v1.54: enable_thinking field always sent, causing 400 errors with OpenAI-compatible APIs #61

Closed
opened 2026-10-20 17:24:40 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Crazya94 on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/173

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Requests fail with a 400 error because Marinara Engine v1.54 always includes the enable_thinking field, which is not supported by some OpenAI-compatible providers (e.g., Swiftrouter).

Expected behavior

When reasoning/thinking is disabled, the enable_thinking field should be omitted entirely from the request payload.

Actual behavior

All requests fail with:

OpenAI API error 400: Extra inputs are not permitted, field: 'enable_thinking'

This occurs even when reasoning/thinking is disabled in settings.

Steps to reproduce

  1. Run Marinara Engine v1.54 on Windows 11
  2. Connect to an OpenAI-compatible provider (e.g., Swiftrouter)
  3. Disable reasoning/thinking in settings
  4. Send a chat/completion request
  5. Request fails with 400 error referencing enable_thinking

Environment

  • Marinara Engine version: 1.54
  • Install type: Windows installer
  • OS: Windows 11
  • Interface: Desktop/web UI (installed version)

Logs / Console output

[Generation] OpenAI API error 400: Extra inputs are not permitted, field: 'enable_thinking', value: False

Additional context

  • This appears to be a regression in v1.54
  • The enable_thinking field is included in the request payload even when reasoning is disabled
  • Other providers (e.g., Nano API) work because they ignore unknown fields, but stricter OpenAI-compatible providers reject the request
  • This breaks compatibility with some OpenAI-compatible APIs and routing services (e.g., Swiftrouter)

Happy to help provide full request payloads if needed—I just wasn’t sure where logs are stored in this setup.

Template check

  • [] I DID NOT read this template and provide the requested details.
Originally created by @Crazya94 on GitHub (Apr 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/173 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Requests fail with a 400 error because Marinara Engine v1.54 always includes the `enable_thinking` field, which is not supported by some OpenAI-compatible providers (e.g., Swiftrouter). ## Expected behavior When reasoning/thinking is disabled, the `enable_thinking` field should be omitted entirely from the request payload. ## Actual behavior All requests fail with: ```id="x1k9lm" OpenAI API error 400: Extra inputs are not permitted, field: 'enable_thinking' ``` This occurs even when reasoning/thinking is disabled in settings. ## Steps to reproduce 1. Run Marinara Engine v1.54 on Windows 11 2. Connect to an OpenAI-compatible provider (e.g., Swiftrouter) 3. Disable reasoning/thinking in settings 4. Send a chat/completion request 5. Request fails with 400 error referencing `enable_thinking` ## Environment * Marinara Engine version: 1.54 * Install type: Windows installer * OS: Windows 11 * Interface: Desktop/web UI (installed version) ## Logs / Console output ```id="q8v2pl" [Generation] OpenAI API error 400: Extra inputs are not permitted, field: 'enable_thinking', value: False ``` ## Additional context * This appears to be a regression in v1.54 * The `enable_thinking` field is included in the request payload even when reasoning is disabled * Other providers (e.g., Nano API) work because they ignore unknown fields, but stricter OpenAI-compatible providers reject the request * This breaks compatibility with some OpenAI-compatible APIs and routing services (e.g., Swiftrouter) Happy to help provide full request payloads if needed—I just wasn’t sure where logs are stored in this setup. ## Template check - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:24:40 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@geniusindisguise-byte commented on GitHub (Apr 22, 2026):

I'm receiving this issue even when using a NanoGPT API. I had my agents using the sidecar local model, I switched Prose Guardian over to the Thinking model from the local sidecar and the issue went away.

<!-- gh-comment-id:4298590254 --> @geniusindisguise-byte commented on GitHub (Apr 22, 2026): I'm receiving this issue even when using a NanoGPT API. I had my agents using the sidecar local model, I switched Prose Guardian over to the Thinking model from the local sidecar and the issue went away.
Author
Owner

@SpicyMarinara commented on GitHub (Apr 23, 2026):

Fixed in v1.5.5.

<!-- gh-comment-id:4304624862 --> @SpicyMarinara commented on GitHub (Apr 23, 2026): Fixed in v1.5.5.
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#61
No description provided.