Documentation
¶
Overview ¶
Package modelclass classifies model ids whose role changes how Caprock should present their usage. It does not contain prices: those belong only in pricing/pricing.json.
Index ¶
Constants ¶
const ( // CodexAutoReview is Codex's hidden approval-review model. Codex describes // it in its local model catalog as "Automatic approval review model for // Codex." It is background product machinery, not a model the user chose, // and OpenAI publishes neither a price nor a base-model mapping for it. CodexAutoReview = "codex-auto-review" )
Variables ¶
This section is empty.
Functions ¶
func Family ¶ added in v0.177.0
Family is a model id reduced to the model it runs, so the same model named by two agents compares as one: Cursor's "claude-4.5-sonnet-thinking" and Claude Code's "claude-sonnet-4-5-20250929" are both "claude-sonnet-4-5". Modes that do not change the model — Cursor's -thinking, -max and -fast suffixes, Claude Code's [1m] — are dropped. An id it does not recognise is returned lower-cased with those suffixes off.
func IsInternal ¶
IsInternal reports whether a model is known background product machinery. Keep this an explicit allow-list: matching a prefix such as "codex-auto-" would silently hide a future user-facing model we have never investigated.
Types ¶
This section is empty.