diff --git a/cmd/copilot/main.go b/cmd/copilot/main.go index d530ec72bde719c2493aa44059d7e58bfa28fd49..047ca84561bb47c516336a1f0f3af664789f10d0 100644 --- a/cmd/copilot/main.go +++ b/cmd/copilot/main.go @@ -51,6 +51,7 @@ type Limits struct { type Supports struct { ToolCalls bool `json:"tool_calls,omitempty"` ParallelToolCalls bool `json:"parallel_tool_calls,omitempty"` + Vision bool `json:"vision,omitempty"` } type Policy struct { @@ -159,6 +160,7 @@ func modelToCatwalk(m Model) catwalk.Model { Name: m.Name, DefaultMaxTokens: int64(m.Capabilities.Limits.MaxOutputTokens), ContextWindow: int64(m.Capabilities.Limits.MaxContextWindowTokens), + SupportsImages: m.Capabilities.Supports.Vision, } } diff --git a/internal/providers/configs/copilot.json b/internal/providers/configs/copilot.json index ce6691e1f24d646a6fb1d07eb5e12befff3511b6..a1436d50a39bcb63284e1ab962ee1948343eaa3c 100644 --- a/internal/providers/configs/copilot.json +++ b/internal/providers/configs/copilot.json @@ -16,7 +16,7 @@ "context_window": 144000, "default_max_tokens": 16000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -29,7 +29,7 @@ "context_window": 160000, "default_max_tokens": 16000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -42,7 +42,7 @@ "context_window": 216000, "default_max_tokens": 16000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -55,7 +55,7 @@ "context_window": 144000, "default_max_tokens": 16000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -68,7 +68,7 @@ "context_window": 128000, "default_max_tokens": 64000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -107,7 +107,7 @@ "context_window": 400000, "default_max_tokens": 128000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -120,7 +120,7 @@ "context_window": 264000, "default_max_tokens": 64000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -133,7 +133,7 @@ "context_window": 264000, "default_max_tokens": 64000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -146,7 +146,7 @@ "context_window": 400000, "default_max_tokens": 128000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -159,7 +159,7 @@ "context_window": 400000, "default_max_tokens": 128000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -172,7 +172,7 @@ "context_window": 264000, "default_max_tokens": 64000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, { @@ -185,7 +185,7 @@ "context_window": 400000, "default_max_tokens": 128000, "can_reason": false, - "supports_attachments": false, + "supports_attachments": true, "options": {} }, {