Merge pull request #2371 from code-yeongyu/fix/issue-2323

fix: respect multimodal provider vision capabilities
This commit is contained in:
YeonGyu-Kim
2026-03-11 20:22:35 +09:00
committed by GitHub
8 changed files with 430 additions and 13 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { VisionCapableModel } from "../plugin-state"
let visionCapableModelsCache = new Map<string, VisionCapableModel>()
export function setVisionCapableModelsCache(
cache: Map<string, VisionCapableModel>,
): void {
visionCapableModelsCache = cache
}
export function readVisionCapableModelsCache(): VisionCapableModel[] {
return Array.from(visionCapableModelsCache.values())
}
export function clearVisionCapableModelsCache(): void {
visionCapableModelsCache = new Map<string, VisionCapableModel>()
}