mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3688] [Issue]: Custom request parameters reject JSON values and reasoning effort is dropped #1992
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#1992
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 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3688
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Connection Custom Parameters only preserve
true,false, andnullreliably. Valid JSON strings, numbers, arrays, and objects are removed when the field blurs or the connection is saved. Separately, a connection configured with xHigh/high reasoning can reach the OpenAI-compatible request path asreasoning_effort=none, despite Peek Prompt and debug prompt logs showing reasoning enabled.Expected behavior
Custom Parameters should accept and persist any valid JSON object value supported by an OpenAI-compatible API, including strings, numbers, booleans, nulls, arrays, and nested objects. Configured reasoning effort should be normalized only for provider/model compatibility (for example xHigh to high where required) and the final outbound request/log should agree with Peek Prompt.
Actual behavior
Values such as
{ "awesomesauce": "enabled" }, numeric values, arrays, or nested objects are invalidated or deleted after blur/save, while boolean/null values survive. For an OpenRouter connection configured with xHigh reasoning, prompt diagnostics report reasoning enabled/high but the OpenAI request log reportsreasoning_effort=none, and the model does not reason.Example diagnostics
Peek Prompt also reports Reasoning: On, high and Verbosity: high. The same model reasons when reasoning is enabled in the OpenRouter chatroom.
Steps to reproduce
true,false, ornullsurvive.Additional context
Custom request JSON must remain validated as an object, but its property values should not be restricted to boolean/null. Reasoning diagnostics should log the effective outbound value rather than a stale or pre-normalized option.
Requested by: Marinara
Template check