ReqAnthropic.Model.Capabilities (ReqAnthropic v0.2.1)

Copy Markdown View Source

Per-model capability flags. Anthropic doesn't currently expose these on GET /v1/models, so the table is hard-coded here. Update this module when models change.

Summary

Functions

Look up capabilities for a model id, falling back to a conservative default.

Types

t()

@type t() :: %ReqAnthropic.Model.Capabilities{
  id: String.t(),
  max_input_tokens: pos_integer() | nil,
  max_output_tokens: pos_integer() | nil,
  supports_computer_use: boolean(),
  supports_extended_thinking: boolean(),
  supports_pdf: boolean(),
  supports_prompt_caching: boolean(),
  supports_vision: boolean()
}

Functions

for_id(id)

@spec for_id(String.t()) :: t()

Look up capabilities for a model id, falling back to a conservative default.