Skip to content

docs(providers): document attachment/modalities model capabilities for custom models - #47482

Closed
aref-alapour wants to merge 1 commit into
anomalyco:devfrom
aref-alapour:docs-custom-model-attachment
Closed

aref-alapour wants to merge 1 commit into
anomalyco:devfrom
aref-alapour:docs-custom-model-attachment

Conversation

@aref-alapour

Copy link
Copy Markdown

Summary

Documents the per-model capability options attachment and modalities.input for custom provider models in the providers guide, with a warning about the silent-placeholder behavior when attachment is not set.

Closes half of #47480 (the docs half).

Context

Custom models default to attachment: false. When images are pasted or attached in a session on such a model, the media part is silently replaced by a plain text placeholder ([Attached image/png: file.png]) before the request is sent — the model never receives the image and nothing warns the user. This is especially confusing when the model behind the endpoint actually supports vision: the model typically "explains" that it cannot see images, and users conclude their provider is broken.

I hit exactly this against an OpenAI-compatible gateway with Gemini-class (vision) heads, and the only way to discover the flag was inspecting the bundled model loader. Documenting it prevents the trap.

Changes

  • New Model capabilities subsection under Custom provider in packages/web/src/content/docs/providers.mdx:
    • example config with attachment: true and modalities.input
    • explanation of both keys
    • a :::warning callout describing the silent placeholder substitution default

English page only — translations can follow their usual flow.

Verification

  • Field names verified against the model loader (attachment: cfg.attachment ?? false, input.image: cfg.modalities?.input?.includes("image") ?? ...) on 1.18.25 CLI and the desktop app server (1.18.29).
  • Behavior verified end-to-end against an OpenAI-compatible gateway: with attachment: true (+ modalities.input) the model transcribes pasted screenshots natively; without it the stored part is the text placeholder.

Happy to extend this with the TUI warning proposed in the issue if maintainers want it server-side or client-side — pointers welcome.

…r custom models

Custom models default to attachment:false. When images are pasted into a
session on such a model they are silently replaced by a text placeholder,
which is undocumented and easy to mistake for a provider problem. Document
the attachment and modalities.input model options in the custom provider
guide with a warning about the default.

Refs #47480
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant