mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-01 17:10:24 +08:00
fix: enable image support for Kimi K2.5 model
Kimi K2.5 supports image input but was incorrectly blocked by the supportsImageInput check that excluded all Kimi models without "vision" in the name. Updated the condition to only exclude the older K2 model while allowing K2.5.
This commit is contained in:
@@ -1161,8 +1161,13 @@ export function supportsImageInput(modelId: string): boolean {
|
||||
lowerModelId.includes("vision") || lowerModelId.includes("vl")
|
||||
|
||||
// Models that DON'T support image/vision input (unless vision variant)
|
||||
// Kimi K2 models don't support images
|
||||
if (lowerModelId.includes("kimi") && !hasVisionIndicator) {
|
||||
// Kimi K2 doesn't support images, but K2.5 does
|
||||
if (
|
||||
lowerModelId.includes("kimi") &&
|
||||
!hasVisionIndicator &&
|
||||
!lowerModelId.includes("2.5") &&
|
||||
!lowerModelId.includes("k2.5")
|
||||
) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user