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

Method isSmallFastModel

aibridge/intercept/messages/base.go:204–206  ·  view source on GitHub ↗

IsSmallFastModel checks if the model is a small/fast model (Haiku 3.5). These models are optimized for tasks like code autocomplete and other small, quick operations. See `ANTHROPIC_SMALL_FAST_MODEL`: https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables https://docs.claude.c

()

Source from the content-addressed store, hash-verified

202// See `ANTHROPIC_SMALL_FAST_MODEL`: https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables
203// https://docs.claude.com/en/docs/claude-code/costs#background-token-usage
204func (i *interceptionBase) isSmallFastModel() bool {
205 return strings.Contains(i.reqPayload.model(), "haiku")
206}
207
208// newMessagesService builds the SDK service used for upstream
209// calls. BYOK auth is set here. Centralized auth is set

Callers 2

ModelMethod · 0.95
ProcessRequestMethod · 0.80

Calls 2

ContainsMethod · 0.45
modelMethod · 0.45

Tested by

no test coverage detected