fix(gateway): honor configured vision models

This commit is contained in:
Peter Steinberger
2026-04-28 06:09:40 +01:00
parent 88bcb64681
commit 3d53b39917
6 changed files with 186 additions and 19 deletions

View File

@@ -329,6 +329,8 @@ Use `models.providers` (or `models.json`) to add **custom** providers or OpenAI/
Many of the bundled provider plugins below already publish a default catalog. Use explicit `models.providers.<id>` entries only when you want to override the default base URL, headers, or model list.
Gateway model capability checks also read explicit `models.providers.<id>.models[]` metadata. If a custom or proxy model accepts images, set `input: ["text", "image"]` on that model so WebChat and node-origin attachment paths pass images as native model inputs instead of text-only media refs.
### Moonshot AI (Kimi)
Moonshot ships as a bundled provider plugin. Use the built-in provider by default, and add an explicit `models.providers.moonshot` entry only when you need to override the base URL or model metadata: