go.bigb.es/claudio

v0.7.0
Doc Versions Source

Constants

const EnterByHandCategory = "✏ Enter model ID"

EnterByHandCategory is the special category label for manual model ID entry.

Functions

f func AllModelIDs

src
func AllModelIDs(models []ORModel) map[string]bool

AllModelIDs returns a set of all model IDs for validation.

f func CategorizeModels

src
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.

f func GroupPopularByProvider

src
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

T type ORModel

src
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.

f func FilterAgentCompatible

src

FilterAgentCompatible returns only models that support tool calling and produce text output, suitable for coding agents.

f func ListModels

src
func ListModels(apiKey string) ([]ORModel, error)

ListModels fetches available models from the OpenRouter API.

m func (ORModel) DisplayName

src
func (m ORModel) DisplayName() string

DisplayName returns a human-friendly name for the model.

Source Files