[GH-ISSUE #5332] [Issue]: Strip image content before Noodle calls to non-vision models #2945

Closed
opened 2026-10-21 05:58:13 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5332

Originally assigned to: @Gunterlie on GitHub.

Summary

Noodle sends image content to the selected timeline model before checking whether the model supports vision. The NanoGPT API rejects the first request with a 400 error, after which Noodle retries the refresh as text-only.

Expected behavior

Noodle should detect that the selected model does not support image inputs before the first call and remove or filter image content, preventing the API error and unnecessary terminal error output.

Actual behavior

Noodle sends image content to the non-vision model "zai-org/glm-5.2". The NanoGPT API returns a 400 error, and Noodle then retries the refresh as text-only.

Steps to reproduce

  1. Run Marinara Engine 2.4.4 and open Noodle.
  2. Select the timeline model "zai-org/glm-5.2", which does not support image inputs.
  3. Run Noodle with an image-containing context.
  4. Observe the NanoGPT 400 error followed by the text-only retry message.

Environment

  • Marinara Engine version: 2.4.4 (build 2.4.4+04bac11a65f4; commit 04bac11a65)
  • Install type: Not provided
  • OS + version: Windows 10.0.26200 (x64)
  • Browser or app shell: Not provided

Logs, screenshots, or video

Error: NanoGPT API error 400: Model "zai-org/glm-5.2" does not support image inputs. Remove image content or choose a multimodal model. The log also reports: "[noodle/vision] The selected timeline model rejected image input; retrying the refresh as text-only". No screenshots or video were provided.

Additional context

The reporter said this behavior may have been introduced with the second image pass version and that the text-only retry already exists, but preflight capability checking would avoid the initial error.

Discord thread: FR - Strip Images out of Noodle Context for Models that doesn't support image content on first call.
Discord thread link: https://discord.com/channels/1417099416812392641/1540075482417078352
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord thread transcript (4 messages)
[2026-08-20T19:10:08.227Z] ylliselmanii: Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+04bac11a65f4
Commit: 04bac11a65f4
Server OS: Windows 10.0.26200 (x64) (idk why, i thought i was on windows 11, but sure.)

Currently, whenever I run Noodle, I'm being bombarded with 
> Error: NanoGPT API error 400: Model \"zai-org/glm-5.2\" does not support image inputs. Remove image content or choose a multimodal model.\n    at e.chatComplete (file:///C:/Users/yllis/AppData/Local/Marinara-Engine/packages/server/data/capability-runtime-snapshots/noodle-1.2.8-62e089a8-cbf9-46e6-a9d7-8de2469f64d6/server.mjs:190:31476)\n    at async Object.generate (file:///C:/Users/yllis/AppData/Local/Marinara-Engine/packages/server/data/capability-runtime-snapshots/noodle-1.2.8-62e089a8-cbf9-46e6-a9d7-8de2469f64d6/server.mjs:502:1000)\n    at async Object.<anonymous> (file:///C:/Users/yllis/AppData/Local/Marinara-Engine/packages/server/data/capability-runtime-snapshots/noodle-1.2.8-62e089a8-cbf9-46e6-a9d7-8de2469f64d6/server.mjs:507:13593)"},"msg":"[noodle/vision] The selected timeline model rejected image input; retrying the refresh as text-only"}

So... not sure of how it actually works, but isn't it something like this (very, very abstracted)
> GET https://nano-gpt.com/api/v1/models?detailed=true /or whatever api
> if model.capabilities.vision == true return message;
> else strip images.. or filter out text... something something. I'm not a programmer

I don't think this used to be a problem, but I'm not sure

Now, i can see that it already does this in a second pass:
> The selected timeline model rejected image input; retrying the refresh as text-only"}
But maybe checking beforehand would be better? idk, errors in my terminal give me the heebie jeebies
[Discord message: https://discord.com/channels/1417099416812392641/1540075482417078352/1540075482417078352]

[2026-08-20T19:10:08.861Z] 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/1540075482417078352/1540075485076131860]

[2026-08-20T19:13:49.403Z] gunterlie: it came with the second image pass version
[Discord message: https://discord.com/channels/1417099416812392641/1540075482417078352/1540076410096455690]

[2026-08-20T19:13:51.460Z] gunterlie: i agree
[Discord message: https://discord.com/channels/1417099416812392641/1540075482417078352/1540076418724139049]

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 (Aug 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5332 Originally assigned to: @Gunterlie on GitHub. ## Summary Noodle sends image content to the selected timeline model before checking whether the model supports vision. The NanoGPT API rejects the first request with a 400 error, after which Noodle retries the refresh as text-only. ## Expected behavior Noodle should detect that the selected model does not support image inputs before the first call and remove or filter image content, preventing the API error and unnecessary terminal error output. ## Actual behavior Noodle sends image content to the non-vision model "zai-org/glm-5.2". The NanoGPT API returns a 400 error, and Noodle then retries the refresh as text-only. ## Steps to reproduce 1. Run Marinara Engine 2.4.4 and open Noodle. 2. Select the timeline model "zai-org/glm-5.2", which does not support image inputs. 3. Run Noodle with an image-containing context. 4. Observe the NanoGPT 400 error followed by the text-only retry message. ## Environment - Marinara Engine version: 2.4.4 (build 2.4.4+04bac11a65f4; commit 04bac11a65f4) - Install type: Not provided - OS + version: Windows 10.0.26200 (x64) - Browser or app shell: Not provided ## Logs, screenshots, or video Error: NanoGPT API error 400: Model "zai-org/glm-5.2" does not support image inputs. Remove image content or choose a multimodal model. The log also reports: "[noodle/vision] The selected timeline model rejected image input; retrying the refresh as text-only". No screenshots or video were provided. ## Additional context The reporter said this behavior may have been introduced with the second image pass version and that the text-only retry already exists, but preflight capability checking would avoid the initial error. Discord thread: FR - Strip Images out of Noodle Context for Models that doesn't support image content on first call. Discord thread link: https://discord.com/channels/1417099416812392641/1540075482417078352 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-08-20T19:10:08.227Z] ylliselmanii: Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+04bac11a65f4 Commit: 04bac11a65f4 Server OS: Windows 10.0.26200 (x64) (idk why, i thought i was on windows 11, but sure.) Currently, whenever I run Noodle, I'm being bombarded with > Error: NanoGPT API error 400: Model \"zai-org/glm-5.2\" does not support image inputs. Remove image content or choose a multimodal model.\n at e.chatComplete (file:///C:/Users/yllis/AppData/Local/Marinara-Engine/packages/server/data/capability-runtime-snapshots/noodle-1.2.8-62e089a8-cbf9-46e6-a9d7-8de2469f64d6/server.mjs:190:31476)\n at async Object.generate (file:///C:/Users/yllis/AppData/Local/Marinara-Engine/packages/server/data/capability-runtime-snapshots/noodle-1.2.8-62e089a8-cbf9-46e6-a9d7-8de2469f64d6/server.mjs:502:1000)\n at async Object.<anonymous> (file:///C:/Users/yllis/AppData/Local/Marinara-Engine/packages/server/data/capability-runtime-snapshots/noodle-1.2.8-62e089a8-cbf9-46e6-a9d7-8de2469f64d6/server.mjs:507:13593)"},"msg":"[noodle/vision] The selected timeline model rejected image input; retrying the refresh as text-only"} So... not sure of how it actually works, but isn't it something like this (very, very abstracted) > GET https://nano-gpt.com/api/v1/models?detailed=true /or whatever api > if model.capabilities.vision == true return message; > else strip images.. or filter out text... something something. I'm not a programmer I don't think this used to be a problem, but I'm not sure Now, i can see that it already does this in a second pass: > The selected timeline model rejected image input; retrying the refresh as text-only"} But maybe checking beforehand would be better? idk, errors in my terminal give me the heebie jeebies [Discord message: https://discord.com/channels/1417099416812392641/1540075482417078352/1540075482417078352] [2026-08-20T19:10:08.861Z] 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/1540075482417078352/1540075485076131860] [2026-08-20T19:13:49.403Z] gunterlie: it came with the second image pass version [Discord message: https://discord.com/channels/1417099416812392641/1540075482417078352/1540076410096455690] [2026-08-20T19:13:51.460Z] gunterlie: i agree [Discord message: https://discord.com/channels/1417099416812392641/1540075482417078352/1540076418724139049] ``` </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-10-21 05:58:13 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Aug 20, 2026):

@Gunterlie I’m picking this up in Pasta-Devs/Marinara-Agents because the affected Noodle runtime is package-owned. I’ll link the staging draft PR here before implementation.

<!-- gh-comment-id:5361178162 --> @SpicyMarinara commented on GitHub (Aug 20, 2026): @Gunterlie I’m picking this up in Pasta-Devs/Marinara-Agents because the affected Noodle runtime is package-owned. I’ll link the staging draft PR here before implementation.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 20, 2026):

Draft implementation PR: Pasta-Devs/Marinara-Agents#474

<!-- gh-comment-id:5361203105 --> @SpicyMarinara commented on GitHub (Aug 20, 2026): Draft implementation PR: Pasta-Devs/Marinara-Agents#474
Author
Owner

@SpicyMarinara commented on GitHub (Aug 20, 2026):

Package ownership issue: Pasta-Devs/Marinara-Agents#475. Implementation remains in Pasta-Devs/Marinara-Agents#474.

<!-- gh-comment-id:5361292248 --> @SpicyMarinara commented on GitHub (Aug 20, 2026): Package ownership issue: Pasta-Devs/Marinara-Agents#475. Implementation remains in Pasta-Devs/Marinara-Agents#474.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 20, 2026):

Resolved on the staging Agents catalog by Pasta-Devs/Marinara-Agents#474 (Noodle 1.2.10).

<!-- gh-comment-id:5361526929 --> @SpicyMarinara commented on GitHub (Aug 20, 2026): Resolved on the staging Agents catalog by Pasta-Devs/Marinara-Agents#474 (Noodle 1.2.10).
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#2945
No description provided.