MCPcopy Create free account
hub / github.com/coder/aibridge / isSmallFastModel

Method isSmallFastModel

intercept/messages/base.go:203–205  ·  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

201// See `ANTHROPIC_SMALL_FAST_MODEL`: https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables
202// https://docs.claude.com/en/docs/claude-code/costs#background-token-usage
203func (i *interceptionBase) isSmallFastModel() bool {
204 return strings.Contains(i.reqPayload.model(), "haiku")
205}
206
207func (i *interceptionBase) newMessagesService(ctx context.Context, opts ...option.RequestOption) (anthropic.MessageService, error) {
208 // BYOK with access token uses Authorization: Bearer.

Callers 2

ModelMethod · 0.95
ProcessRequestMethod · 0.80

Calls 1

modelMethod · 0.45

Tested by

no test coverage detected