Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions internal/providers/configs/gemini.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"can_reason": true,
"reasoning_levels": ["low", "medium", "high"],
"default_reasoning_effort": "medium",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-3.1-pro-preview-customtools",
Expand All @@ -33,7 +34,8 @@
"can_reason": true,
"reasoning_levels": ["low", "medium", "high"],
"default_reasoning_effort": "medium",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-3-pro-preview",
Expand All @@ -47,7 +49,8 @@
"can_reason": true,
"reasoning_levels": ["low", "high"],
"default_reasoning_effort": "high",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-3-flash-preview",
Expand All @@ -61,7 +64,8 @@
"can_reason": true,
"reasoning_levels": ["minimal", "low", "medium", "high"],
"default_reasoning_effort": "minimal",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-2.5-pro",
Expand All @@ -73,7 +77,8 @@
"context_window": 1048576,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-2.5-flash",
Expand All @@ -85,7 +90,8 @@
"context_window": 1048576,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
}
]
}
33 changes: 22 additions & 11 deletions internal/providers/configs/vertexai.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"can_reason": true,
"reasoning_levels": ["low", "medium", "high"],
"default_reasoning_effort": "medium",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-3.1-pro-preview-customtools",
Expand All @@ -33,7 +34,8 @@
"can_reason": true,
"reasoning_levels": ["low", "medium", "high"],
"default_reasoning_effort": "medium",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-3-pro-preview",
Expand All @@ -47,7 +49,8 @@
"can_reason": true,
"reasoning_levels": ["low", "high"],
"default_reasoning_effort": "high",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-3-flash-preview",
Expand All @@ -61,7 +64,8 @@
"can_reason": true,
"reasoning_levels": ["minimal", "low", "medium", "high"],
"default_reasoning_effort": "minimal",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-2.5-pro",
Expand All @@ -73,7 +77,8 @@
"context_window": 1048576,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "gemini-2.5-flash",
Expand All @@ -85,7 +90,8 @@
"context_window": 1048576,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "claude-sonnet-4-6",
Expand All @@ -99,7 +105,8 @@
"can_reason": true,
"reasoning_levels": ["low", "medium", "high", "max"],
"default_reasoning_effort": "medium",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "claude-sonnet-4-5-20250929",
Expand All @@ -111,7 +118,8 @@
"context_window": 200000,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "claude-opus-4-6",
Expand All @@ -125,7 +133,8 @@
"can_reason": true,
"reasoning_levels": ["low", "medium", "high", "max"],
"default_reasoning_effort": "medium",
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "claude-opus-4-5-20251101",
Expand All @@ -137,7 +146,8 @@
"context_window": 200000,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
},
{
"id": "claude-haiku-4-5-20251001",
Expand All @@ -150,7 +160,8 @@
"default_max_tokens": 32000,
"can_reason": true,
"has_reasoning_efforts": false,
"supports_attachments": true
"supports_attachments": true,
"max_attachments": 10
}
]
}
7 changes: 6 additions & 1 deletion pkg/catwalk/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ type Model struct {
ReasoningLevels []string `json:"reasoning_levels,omitempty"`
DefaultReasoningEffort string `json:"default_reasoning_effort,omitempty"`
SupportsImages bool `json:"supports_attachments"`
Options ModelOptions `json:"options,omitzero"`
// MaxAttachments is the per-request hard cap on image attachments for this
// model. Zero (the default) means no provider-enforced limit and consumers
// should fall back to context-window sizing. A positive value is a hard
// cap that consumers must respect (e.g. Gemini caps at 10).
MaxAttachments int64 `json:"max_attachments,omitempty"`
Options ModelOptions `json:"options,omitzero"`
}

// KnownProviders returns all the known inference providers.
Expand Down