Skip to main content

Module copilot_models

Module copilot_models 

Source
Expand description

Ranked catalog of Copilot-served models for intelligent default selection and self-heal

§Copilot Model Catalog

Ranked catalog of GitHub-Copilot-served models used by the Copilot CLI runner and the Copilot Headless (ACP) runner to pick a sensible default and to self-heal when the requested model has been rotated out of the account’s entitlement.

The catalog is the single source of truth: adding or retiring a model happens here, not in consumer code. Ranking is (family, version desc, tier) so the top entry is always the newest highest-quality model we know about.

Structs§

ModelCandidate
One entry in the ranked Copilot model catalog.

Enums§

Family
Model family grouping — higher priorities are preferred defaults.
ReasoningEffort
Reasoning effort level forwarded via --reasoning-effort to Copilot.
Tier
Speed/capacity tier within a family.

Constants§

CATALOG
Canonical ranked catalog of GitHub-Copilot-served models.

Functions§

catalog_ids
Every model id in CATALOG as owned Strings.
classify_model_error
Detect Copilot’s “model not available” failure in captured stderr.
default_effort_for
Heuristic default reasoning effort for a model id.
find
Lookup a candidate by exact id.
next_preferred
Next candidate id after current in catalog order.
preferred_default
Identifier of the top-ranked candidate in CATALOG.
rank
Sort a slice of candidates by (family priority, version desc, tier priority).