From fb3e77516dc2a60ff74df9bbc4e1a150248a32e7 Mon Sep 17 00:00:00 2001 From: Hugo Bjork Date: Tue, 28 Jul 2026 14:12:27 +0200 Subject: [PATCH] feat(models): enable vision for Kimi K3 Kimi K3 supports image input but was missing from VISION_MODELS, so the plugin did not set attachment/modalities and OpenCode treated it as text-only. Add moonshotai/Kimi-K3 so image attachments work, matching Kimi K2.6. --- src/plugin/models.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugin/models.ts b/src/plugin/models.ts index b6b715a..e7187fd 100644 --- a/src/plugin/models.ts +++ b/src/plugin/models.ts @@ -20,9 +20,7 @@ interface ChatModelsResponse { } // Models that support vision/image input -const VISION_MODELS = new Set([ - "moonshotai/Kimi-K2.6", -]); +const VISION_MODELS = new Set(['moonshotai/Kimi-K2.6', 'moonshotai/Kimi-K3']); // Cache for models to avoid repeated API calls let cachedModels: Record | undefined;