Skip to content

Commit 42c4b8a

Browse files
chore(zoo-gateway): remove redundant vision-capability comments
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4e6de0a commit 42c4b8a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/api/providers/fetchers/vercel-ai-gateway.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const vercelAiGatewayModelSchema = z.object({
3434
context_window: z.number(),
3535
max_tokens: z.number(),
3636
type: z.string(),
37-
// Vercel AI Gateway / Zoo Gateway capability tags (e.g. "vision", "tool-use").
3837
tags: z.array(z.string()).optional(),
3938
pricing: vercelAiGatewayPricingSchema,
4039
})
@@ -101,8 +100,6 @@ export const parseVercelAiGatewayModel = ({ id, model }: { id: string; model: Ve
101100
const cacheReadsPrice = model.pricing?.input_cache_read ? parseApiPrice(model.pricing?.input_cache_read) : undefined
102101

103102
const supportsPromptCache = typeof cacheWritesPrice !== "undefined" && typeof cacheReadsPrice !== "undefined"
104-
// Prefer live capability tags from the models API; fall back to static allowlists when
105-
// tags are absent (older Zoo Gateway catalog rows, or partial/offline fixtures).
106103
const supportsImages = Array.isArray(model.tags)
107104
? model.tags.includes("vision")
108105
: VERCEL_AI_GATEWAY_VISION_ONLY_MODELS.has(id) || VERCEL_AI_GATEWAY_VISION_AND_TOOLS_MODELS.has(id)

0 commit comments

Comments
 (0)