[GH-ISSUE #3688] [Issue]: Custom request parameters reject JSON values and reasoning effort is dropped #1992

Closed
opened 2026-10-21 05:44:27 +07:00 by bsakaguchi · 0 comments
Owner

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, and null reliably. 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 as reasoning_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 reports reasoning_effort=none, and the model does not reason.

Example diagnostics

[OpenAI chat()] stream=true model=tencent/hy3 reasoning_effort=none enableThinking=true verbosity=default ...
[debug] Prompt sent to model ... Effort: high Verbosity: high Stream: true

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

  1. Edit a connection and add Custom Parameters containing string, number, array, or nested-object values.
  2. Blur or save and observe those values disappear, while true, false, or null survive.
  3. Configure an OpenRouter/OpenAI-compatible model with xHigh or high reasoning effort and enable thinking.
  4. Generate with debug logging enabled.
  5. Compare Peek Prompt/debug settings with the final OpenAI-compatible request log and model behavior.

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

  • I DID NOT read this template and provide the requested details.
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`, and `null` reliably. 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 as `reasoning_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 reports `reasoning_effort=none`, and the model does not reason. ## Example diagnostics ```text [OpenAI chat()] stream=true model=tencent/hy3 reasoning_effort=none enableThinking=true verbosity=default ... [debug] Prompt sent to model ... Effort: high Verbosity: high Stream: true ``` 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 1. Edit a connection and add Custom Parameters containing string, number, array, or nested-object values. 2. Blur or save and observe those values disappear, while `true`, `false`, or `null` survive. 3. Configure an OpenRouter/OpenAI-compatible model with xHigh or high reasoning effort and enable thinking. 4. Generate with debug logging enabled. 5. Compare Peek Prompt/debug settings with the final OpenAI-compatible request log and model behavior. ## 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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:27 +07:00
  • closed this issue
  • added the
    in-pr
    label
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#1992
No description provided.