You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom provider model modalities are ignored and text-only models show img #1637
A custom OpenAI-compatible provider can return per-model input and output modality arrays from GET /v1/models, but Mecatl ignores those fields. An uncatalogued text-only model can therefore appear in Mecatui's /models picker with the img capability.
This was reported by a user on Discord while configuring a custom provider. Their provider returned input: ["text"] and output: ["text"] for one model, but Mecatui still displayed img for that model and every other model from the provider.
The current path explains the result:
internal/adapter/openaicompat.Lister decodes only id, display_name, and context_window;
gatewayLister consequently leaves InputModalities unknown; and
an uncatalogued Chat Completions model falls back to the adapter-wide Image: true capability.
The img label also does not make clear that it means image input, not image generation/output, which contributed to confusion in the report.
Steps to reproduce
Configure a custom provider with api_flavor: openai-chat-completions.
Have its GET /v1/models response include an uncatalogued model with input: ["text"] and output: ["text"].
Open /models in Mecatui.
Observe that the model is marked img.
Expected behavior
When a supported live model-list response explicitly declares text-only input, Mecatl should not advertise image-input support for that model. The picker should also identify the capability clearly as image input rather than image generation.
Missing modality metadata must remain distinguishable from an explicit text-only declaration so providers using the basic OpenAI-shaped response keep their existing fallback behavior.
Actual behavior
The live input and output fields are ignored. The unknown-model fallback inherits the Chat Completions adapter's protocol-wide image capability, producing a false-positive img badge.
Environment (if relevant)
Deployment shape: embedded Mecatui with a custom OpenAI Chat Completions provider
Additional context
Reported generically from Discord; provider identity and endpoint omitted. No secrets are included.
Activity