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
()
| 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 |
| 203 | func (i *interceptionBase) isSmallFastModel() bool { |
| 204 | return strings.Contains(i.reqPayload.model(), "haiku") |
| 205 | } |
| 206 | |
| 207 | func (i *interceptionBase) newMessagesService(ctx context.Context, opts ...option.RequestOption) (anthropic.MessageService, error) { |
| 208 | // BYOK with access token uses Authorization: Bearer. |
no test coverage detected