[GH-ISSUE #3170] [Issue]: Add manual image input override for Image Captioning connections #1701

Closed
opened 2026-10-21 05:41:50 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Image Captioning connection selection currently depends on provider/model-name heuristics, which can exclude valid local or custom multimodal models. Add a manual connection-level override so advanced users can allow a connection to appear in the Image Captioning dropdown.

Expected behavior

Users should be able to mark a connection as supporting image input, allowing it to appear in the Image Captioning dropdown even when the model name is not recognized by the automatic heuristic.

Actual behavior

Connections are only shown when detected as vision-capable by provider/model-name heuristics. Valid multimodal local or custom models with names such as "gemma-4-31b" may be hidden unless the user renames the model or creates a proxy alias.

Steps to reproduce

  1. Configure a local or custom OpenAI-compatible multimodal model whose exposed model name does not include common vision markers such as vision, vl, llava, or pixtral.
  2. Open the Image Captioning connection dropdown.
  3. Observe that the connection is not available for selection even if the backend supports image input.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Discord context includes suggested implementation:

function isLikelyVisionConnection(connection: Record<string, unknown>): boolean {
const provider = typeof connection.provider === "string" ? connection.provider : "";
const model = typeof connection.model === "string" ? connection.model.toLowerCase() : "";

if (connection.supportsImageInput === true) {
return provider !== "image_generation";
}

if (!model || provider === "image_generation") return false;

// existing heuristic continues here...
}

Additional context

Suggested UI label: "Supports image input" or "Allow this connection for Image Captioning". Suggested warning: "Only enable this if the endpoint supports image attachments. Requests may fail if the model is text-only." Maintainer response: "We should allow users to choose any model there."

Discord thread: Add manual “supports image input” override for Image Captioning connections
Discord thread link: https://discord.com/channels/1417099416812392641/1522376863941529803
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-02T23:02:08.758Z] KeKKERUUU: Hi, I’d like to suggest a small improvement to the Image Captioning connection selection logic.

Currently, the Image Captioning dropdown only shows connections that are detected as vision-capable through provider/model-name heuristics. This is a helpful default because it prevents users from accidentally selecting text-only models. However, it can miss valid local or custom multimodal models whose model names do not include common markers such as vision, vl, llava, pixtral, etc.

A practical example is a local/custom Gemma 4 31B setup. Depending on how the endpoint exposes the model, the configured model name may simply be something like gemma-4-31b. Even if the backend supports image input, the current heuristic does not recognize it, so the connection cannot be selected for Image Captioning unless the user renames the model or adds a proxy alias.

I think the current heuristic is useful and should remain as the default behavior. The requested change is to add a manual override on connections, for example:

Supports image input
or
Allow this connection for Image Captioning

When enabled, the connection would appear in the Image Captioning dropdown even if the model name is not recognized by the heuristic. The UI could show a short warning such as:

“Only enable this if the endpoint supports image attachments. Requests may fail if the model is text-only.”

This would preserve the safe default behavior for normal users while allowing advanced users with local/custom/OpenAI-compatible endpoints to use valid multimodal models that the app cannot reliably identify by name.

Suggested implementation direction:
` ` `

function isLikelyVisionConnection(connection: Record<string, unknown>): boolean {
  const provider = typeof connection.provider === "string" ? connection.provider : "";
  const model = typeof connection.model === "string" ? connection.model.toLowerCase() : "";

  if (connection.supportsImageInput === true) {
    return provider !== "image_generation";
  }

  if (!model || provider === "image_generation") return false;

  // existing heuristic continues here...
}

` ` `
This avoids needing to constantly update regexes for new model families, local aliases, quantized model names, and custom backend naming conventions. It also makes the behavior more transparent: automatic detection for common models, manual override for advanced setups.

Thanks for considering it.
[Discord message: https://discord.com/channels/1417099416812392641/1522376863941529803/1522376863941529803]

[2026-07-03T08:47:42.622Z] Marinara: We should allow users to choose any model there.
[Discord message: https://discord.com/channels/1417099416812392641/1522376863941529803/1522524226047705088]

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 (Jul 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3170 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Image Captioning connection selection currently depends on provider/model-name heuristics, which can exclude valid local or custom multimodal models. Add a manual connection-level override so advanced users can allow a connection to appear in the Image Captioning dropdown. ## Expected behavior Users should be able to mark a connection as supporting image input, allowing it to appear in the Image Captioning dropdown even when the model name is not recognized by the automatic heuristic. ## Actual behavior Connections are only shown when detected as vision-capable by provider/model-name heuristics. Valid multimodal local or custom models with names such as "gemma-4-31b" may be hidden unless the user renames the model or creates a proxy alias. ## Steps to reproduce 1. Configure a local or custom OpenAI-compatible multimodal model whose exposed model name does not include common vision markers such as vision, vl, llava, or pixtral. 2. Open the Image Captioning connection dropdown. 3. Observe that the connection is not available for selection even if the backend supports image input. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Discord context includes suggested implementation: function isLikelyVisionConnection(connection: Record<string, unknown>): boolean { const provider = typeof connection.provider === "string" ? connection.provider : ""; const model = typeof connection.model === "string" ? connection.model.toLowerCase() : ""; if (connection.supportsImageInput === true) { return provider !== "image_generation"; } if (!model || provider === "image_generation") return false; // existing heuristic continues here... } ## Additional context Suggested UI label: "Supports image input" or "Allow this connection for Image Captioning". Suggested warning: "Only enable this if the endpoint supports image attachments. Requests may fail if the model is text-only." Maintainer response: "We should allow users to choose any model there." Discord thread: Add manual “supports image input” override for Image Captioning connections Discord thread link: https://discord.com/channels/1417099416812392641/1522376863941529803 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-02T23:02:08.758Z] KeKKERUUU: Hi, I’d like to suggest a small improvement to the Image Captioning connection selection logic. Currently, the Image Captioning dropdown only shows connections that are detected as vision-capable through provider/model-name heuristics. This is a helpful default because it prevents users from accidentally selecting text-only models. However, it can miss valid local or custom multimodal models whose model names do not include common markers such as vision, vl, llava, pixtral, etc. A practical example is a local/custom Gemma 4 31B setup. Depending on how the endpoint exposes the model, the configured model name may simply be something like gemma-4-31b. Even if the backend supports image input, the current heuristic does not recognize it, so the connection cannot be selected for Image Captioning unless the user renames the model or adds a proxy alias. I think the current heuristic is useful and should remain as the default behavior. The requested change is to add a manual override on connections, for example: Supports image input or Allow this connection for Image Captioning When enabled, the connection would appear in the Image Captioning dropdown even if the model name is not recognized by the heuristic. The UI could show a short warning such as: “Only enable this if the endpoint supports image attachments. Requests may fail if the model is text-only.” This would preserve the safe default behavior for normal users while allowing advanced users with local/custom/OpenAI-compatible endpoints to use valid multimodal models that the app cannot reliably identify by name. Suggested implementation direction: ` ` ` function isLikelyVisionConnection(connection: Record<string, unknown>): boolean { const provider = typeof connection.provider === "string" ? connection.provider : ""; const model = typeof connection.model === "string" ? connection.model.toLowerCase() : ""; if (connection.supportsImageInput === true) { return provider !== "image_generation"; } if (!model || provider === "image_generation") return false; // existing heuristic continues here... } ` ` ` This avoids needing to constantly update regexes for new model families, local aliases, quantized model names, and custom backend naming conventions. It also makes the behavior more transparent: automatic detection for common models, manual override for advanced setups. Thanks for considering it. [Discord message: https://discord.com/channels/1417099416812392641/1522376863941529803/1522376863941529803] [2026-07-03T08:47:42.622Z] Marinara: We should allow users to choose any model there. [Discord message: https://discord.com/channels/1417099416812392641/1522376863941529803/1522524226047705088] ``` </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:41:50 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 3, 2026):

Codex is taking this in branch codex/issue-sweep-3169-3173, tracked by PR #3177.

<!-- gh-comment-id:4874768304 --> @SpicyMarinara commented on GitHub (Jul 3, 2026): Codex is taking this in branch `codex/issue-sweep-3169-3173`, tracked by PR #3177.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 3, 2026):

Addressed in PR #3177. Local validation passed: pnpm regression:prompt; pnpm --filter @marinara-engine/shared build; pnpm check.

<!-- gh-comment-id:4874896493 --> @SpicyMarinara commented on GitHub (Jul 3, 2026): Addressed in PR #3177. Local validation passed: pnpm regression:prompt; pnpm --filter @marinara-engine/shared build; pnpm check.
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#1701
No description provided.