MCPcopy Index your code
hub / github.com/coder/coder / InlineImageCapBytes

Function InlineImageCapBytes

coderd/x/chatd/chatprovider/chatprovider.go:91–98  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

89// Bedrock shares Anthropic's cap because fantasy's bedrock provider
90// wraps the anthropic client.
91func 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.
101type ProviderAPIKeys struct {

Callers 2

chatFileResolverMethod · 0.92
inlineImageCapForFunction · 0.92

Calls 1

NormalizeProviderFunction · 0.85

Tested by 1

inlineImageCapForFunction · 0.74