[GH-ISSUE #1887] [Issue]: Custom endpoints receive invalid response_format.type during setup #1804

Closed
opened 2026-11-07 16:36:47 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1887

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When setting up an Otome Hearth connection using a custom OpenAI-compatible endpoint, Marinara sends an unsupported response_format.type value. The endpoint rejects the request with HTTP 400.

Expected behavior

Marinara should send a response_format.type value supported by the custom endpoint, such as json_schema or text, or omit the field when unsupported.

Actual behavior

The custom endpoint returns HTTP 400 because response_format.type is not json_schema or text. A similar issue may occur when requesting a premise.

Steps to reproduce

  1. Configure a custom OpenAI-compatible endpoint and select the Gutenberg Heretic connection using model gemma4-gutenberg-31b-i1.
  2. Set up or request content in Otome Hearth, such as generating the setup or requesting a premise.
  3. Observe the endpoint error stating that response_format.type must be json_schema or text.

Environment

  • Marinara Engine version: 2.5.1 (build 2.5.1+98ae0c8f9865, commit 98ae0c8f9865)
  • Install type: Not provided
  • OS + version: Windows 10.0.19045 (x64)
  • Browser or app shell: Firefox 153.0

Logs, screenshots, or video

Attached text log: otomehearthsetuperror.txt. Relevant error: LLMHttpError: Custom OpenAI-compatible endpoint error 400: 'response_format.type' must be 'json_schema' or 'text'.

Additional context

Connection provider: custom. Active connection: Gutenberg Heretic. LLM model: gemma4-gutenberg-31b-i1. The reporter noted that requesting a premise may produce the same error, but worked around it by creating one manually. Server GPU: NVIDIA GeForce RTX 3090; client GPU: NVIDIA GeForce GTX 980 or similar.

Discord thread: [Otome Hearth] setup sending wrong response_format.type to custom endpoints
Discord thread link: https://discord.com/channels/1417099416812392641/1565451844547903548
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-10-29T19:46:44.429Z] Aster: I think it did the same thing when requesting a premise, but that was optional enough that I just made something up and moved on.

Full error is unfortunately too long to post directly(attaching as text file), relevant part seems to be `"type":"LLMHttpError","message":"Custom OpenAI-compatible endpoint error 400: 'response_format.type' must be 'json_schema' or 'text'","stack":"LLMHttpError: Custom OpenAI-compatible endpoint error 400: 'response_format.type' must be 'json_schema' or 'text'`

` ` `
Marinara Engine diagnostics
Version: 2.5.1
Build: 2.5.1+98ae0c8f9865
Commit: 98ae0c8f9865
Server OS: Windows 10.0.19045 (x64)
Server memory: heap 245 / 4288 MiB; RSS 324.1 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: shut down cleanly at 2026-10-29T19:37:43.313Z
Sessions ended without shutdown: 3 recorded
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0
Client runtime: {"build":"2.5.1+98ae0c8f9865","page":"mvty6hco-f7e6p2um","persistence":"local","navigation":"reload","standalone":false,"view":[1016,0,0,0],"events":[{"at":1793302648324,"page":"mvty3f9g-iudo3n1g","build":"2.5.1+27c8c61262bc","kind":"page-start","view":[1016,0,0,0]},{"at":1793302783636,"page":"mvty6bo4-50d9oji2","build":"2.5.1+98ae0c8f9865","kind":"page-start","view":[1016,0,0,0]},{"at":1793302791000,"page":"mvty6hco-f7e6p2um","build":"2.5.1+98ae0c8f9865","kind":"page-start","view":[1016,0,0,0]}]}
GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar
Server GPU: NVIDIA GeForce RTX 3090, 24576 MiB total, 21123 MiB used, driver 572.83
Main sidecar: not configured
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured
Active connection: Gutenberg Heretic
Connection provider: custom
LLM model: gemma4-gutenberg-31b-i1
Professor Mari last acted on: none recorded this session
` ` `
[attached file: otomehearthsetuperror.txt — https://cdn.discordapp.com/attachments/1565451844547903548/1565451844808089750/otomehearthsetuperror.txt?ex=6ae4f424&is=6ae3a2a4&hm=057a68c4431fadc97f02f078fea8d7cd0bed8681bcb196a8c57a06db85d8043a&]
[Discord message: https://discord.com/channels/1417099416812392641/1565451844547903548/1565451844547903548]

[2026-10-29T19:46:45.097Z] 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/1565451844547903548/1565451847349575703]

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 (Oct 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1887 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When setting up an Otome Hearth connection using a custom OpenAI-compatible endpoint, Marinara sends an unsupported response_format.type value. The endpoint rejects the request with HTTP 400. ## Expected behavior Marinara should send a response_format.type value supported by the custom endpoint, such as json_schema or text, or omit the field when unsupported. ## Actual behavior The custom endpoint returns HTTP 400 because response_format.type is not json_schema or text. A similar issue may occur when requesting a premise. ## Steps to reproduce 1. Configure a custom OpenAI-compatible endpoint and select the Gutenberg Heretic connection using model gemma4-gutenberg-31b-i1. 2. Set up or request content in Otome Hearth, such as generating the setup or requesting a premise. 3. Observe the endpoint error stating that response_format.type must be json_schema or text. ## Environment - Marinara Engine version: 2.5.1 (build 2.5.1+98ae0c8f9865, commit 98ae0c8f9865) - Install type: Not provided - OS + version: Windows 10.0.19045 (x64) - Browser or app shell: Firefox 153.0 ## Logs, screenshots, or video Attached text log: otomehearthsetuperror.txt. Relevant error: LLMHttpError: Custom OpenAI-compatible endpoint error 400: 'response_format.type' must be 'json_schema' or 'text'. ## Additional context Connection provider: custom. Active connection: Gutenberg Heretic. LLM model: gemma4-gutenberg-31b-i1. The reporter noted that requesting a premise may produce the same error, but worked around it by creating one manually. Server GPU: NVIDIA GeForce RTX 3090; client GPU: NVIDIA GeForce GTX 980 or similar. Discord thread: [Otome Hearth] setup sending wrong response_format.type to custom endpoints Discord thread link: https://discord.com/channels/1417099416812392641/1565451844547903548 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-10-29T19:46:44.429Z] Aster: I think it did the same thing when requesting a premise, but that was optional enough that I just made something up and moved on. Full error is unfortunately too long to post directly(attaching as text file), relevant part seems to be `"type":"LLMHttpError","message":"Custom OpenAI-compatible endpoint error 400: 'response_format.type' must be 'json_schema' or 'text'","stack":"LLMHttpError: Custom OpenAI-compatible endpoint error 400: 'response_format.type' must be 'json_schema' or 'text'` ` ` ` Marinara Engine diagnostics Version: 2.5.1 Build: 2.5.1+98ae0c8f9865 Commit: 98ae0c8f9865 Server OS: Windows 10.0.19045 (x64) Server memory: heap 245 / 4288 MiB; RSS 324.1 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: shut down cleanly at 2026-10-29T19:37:43.313Z Sessions ended without shutdown: 3 recorded Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0 Client runtime: {"build":"2.5.1+98ae0c8f9865","page":"mvty6hco-f7e6p2um","persistence":"local","navigation":"reload","standalone":false,"view":[1016,0,0,0],"events":[{"at":1793302648324,"page":"mvty3f9g-iudo3n1g","build":"2.5.1+27c8c61262bc","kind":"page-start","view":[1016,0,0,0]},{"at":1793302783636,"page":"mvty6bo4-50d9oji2","build":"2.5.1+98ae0c8f9865","kind":"page-start","view":[1016,0,0,0]},{"at":1793302791000,"page":"mvty6hco-f7e6p2um","build":"2.5.1+98ae0c8f9865","kind":"page-start","view":[1016,0,0,0]}]} GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0), or similar Server GPU: NVIDIA GeForce RTX 3090, 24576 MiB total, 21123 MiB used, driver 572.83 Main sidecar: not configured Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured Active connection: Gutenberg Heretic Connection provider: custom LLM model: gemma4-gutenberg-31b-i1 Professor Mari last acted on: none recorded this session ` ` ` [attached file: otomehearthsetuperror.txt — https://cdn.discordapp.com/attachments/1565451844547903548/1565451844808089750/otomehearthsetuperror.txt?ex=6ae4f424&is=6ae3a2a4&hm=057a68c4431fadc97f02f078fea8d7cd0bed8681bcb196a8c57a06db85d8043a&] [Discord message: https://discord.com/channels/1417099416812392641/1565451844547903548/1565451844547903548] [2026-10-29T19:46:45.097Z] 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/1565451844547903548/1565451847349575703] ``` </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-11-07 16:36:47 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 29, 2026):

Owner: @SpicyMarinara (Codex). I am tracing Otome Hearth setup/premise structured-output requests through the existing Engine provider boundary. I will reproduce the reported custom-endpoint 400 and fix the owning layer while preserving JSON validation and existing output-token budgets.

<!-- gh-comment-id:6507297674 --> @SpicyMarinara commented on GitHub (Oct 29, 2026): Owner: @SpicyMarinara (Codex). I am tracing Otome Hearth setup/premise structured-output requests through the existing Engine provider boundary. I will reproduce the reported custom-endpoint 400 and fix the owning layer while preserving JSON validation and existing output-token budgets.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 29, 2026):

Implemented, merged to staging and published as Otome Hearth 0.1.12. Delivery and validation receipt: https://github.com/Pasta-Devs/Marinara-Agents/pull/1888#issuecomment-6508294824. Required pre-merge gates passed; post-merge and optional workflow states are recorded separately in that receipt.

<!-- gh-comment-id:6508296913 --> @SpicyMarinara commented on GitHub (Oct 29, 2026): Implemented, merged to staging and published as Otome Hearth 0.1.12. Delivery and validation receipt: https://github.com/Pasta-Devs/Marinara-Agents/pull/1888#issuecomment-6508294824. Required pre-merge gates passed; post-merge and optional workflow states are recorded separately in that receipt.
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-Agents#1804
No description provided.