InlineImageCapBytes returns the per-image byte cap for inline image parts, or (0, false) when no documented cap applies. Bedrock shares Anthropic's cap because fantasy's bedrock provider wraps the anthropic client.
(provider string)
| 89 | // Bedrock shares Anthropic's cap because fantasy's bedrock provider |
| 90 | // wraps the anthropic client. |
| 91 | func InlineImageCapBytes(provider string) (int, bool) { |
| 92 | switch NormalizeProvider(provider) { |
| 93 | case fantasyanthropic.Name, fantasybedrock.Name: |
| 94 | return codersdk.AnthropicInlineImageCapBytes, true |
| 95 | default: |
| 96 | return 0, false |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // ProviderAPIKeys contains API keys for provider calls. |
| 101 | type ProviderAPIKeys struct { |