mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 17:52:31 +03:00
The opencode config generator fetched the live /v1/models catalog but only extracted context_length for new model entries, discarding capabilities (capabilities.vision, input_modalities, etc.) that OpenCode uses to gate clipboard/image input. Newly discovered vision-capable models were presented as text-only, causing OpenCode to reject attachments before sending the HTTP request. - Add input_modalities/output_modalities to CatalogModelEntry - Add deriveOpenCodeCapabilities() helper mapping catalog capabilities to OpenCode fields (attachment, reasoning, temperature, tool_call) with explicit user override precedence - Replace the existing round-trip-only flag loop in buildModelEntry() with the new helper so catalog-derived values fill in for new models Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>