mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4335] [Issue]: Custom OpenAI-compatible connections send reasoning_effort to unsupported models #2349
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#2349
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 (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4335
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On staging, chats using a custom OpenAI-compatible provider send an inherited reasoning_effort value to non-reasoning models. Providers such as Ollama reject the request, causing the chat turn to fail.
Expected behavior
Marinara should omit reasoning_effort when the selected model does not support reasoning, unless a compatible model and explicitly supported effort are configured.
Actual behavior
A chat without a prompt preset inherits the default reasoning effort, which resolves from "maximum" to "high" and is sent through generic custom providers without applying the existing model capability gate. Ollama returns HTTP 400 because the selected model does not support thinking.
Steps to reproduce
Environment
Logs, screenshots, or video
Wire capture from a logging proxy in front of Ollama:
POST /v1/chat/completions
{"model":"dolphin3:8b", ..., "reasoning_effort":"high"}
Response: 400 {"error":{"message":""dolphin3:8b" does not support thinking"}}
Reported code path:
Additional context
The reporter suggested reusing shouldSendReasoningEffort(options.model, options.reasoningEffort) in the generic custom-provider branch. Caveat: this may prevent custom endpoints proxying real reasoning models from sending effort except for recognized models such as gpt-5.5/5.6. Alternatives suggested were sending the field only when explicitly configured rather than inherited, or retrying once without it after a 400 response. Editing presets to set reasoning effort to none is a partial workaround, but no None/null effort preset reportedly ships by default, and the issue can reappear after changing a preset connection. Whether setting Reasoning to Off still sends the field was asked but not answered in the provided context.
Discord thread: Bug: custom OpenAI-compatible connections send reasoning_effort to models that don't support it
Discord thread link: https://discord.com/channels/1417099416812392641/1532521921646821376
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (4 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 31, 2026):
Reasoning effort set to none should send
"reasoning_effort": none. We should add an option labeledOffthat sends the reasoning as off/none. Disabling the toggle for thinking in Advanced Parameters should not send any reasoning/reasoning_effort fields at all.@SpicyMarinara commented on GitHub (Jul 31, 2026):
Implementation is in progress by @SpicyMarinara with Codex in draft PR #4340. This issue is part of the current focused staging sweep; existing code paths will be reused and kept narrow.