go.bigb.es/claudio
Index
Constants
const EnterByHandCategory = "✏ Enter model ID"
Functions
func AllModelIDs(models []ORModel) map[string]bool
AllModelIDs returns a set of all model IDs for validation.
func CategorizeModels(models []ORModel) ([]string, map[string][]ORModel)
CategorizeModels groups models into Free, Popular, and Newest categories. Returns category names and a map of category → models.
func GroupPopularByProvider(models []ORModel) ([]string, map[string][]ORModel)
GroupPopularByProvider groups popular models by their provider prefix. Returns ordered provider display names and a map of name → models.
Types
type ORModel struct { ID string `json:"id"` Name string `json:"name"` Created float64 `json:"created"` ContextLength int `json:"context_length"` Pricing struct { Prompt string `json:"prompt"` Completion string `json:"completion"` } `json:"pricing"` SupportedParameters []string `json:"supported_parameters"` Architecture struct { OutputModalities []string `json:"output_modalities"` } `json:"architecture"` }
ORModel represents a model available via the OpenRouter API.
func FilterAgentCompatible(models []ORModel) []ORModel
FilterAgentCompatible returns only models that support tool calling and produce text output, suitable for coding agents.
func ListModels(apiKey string) ([]ORModel, error)
ListModels fetches available models from the OpenRouter API.
EnterByHandCategory is the special category label for manual model ID entry.