Protected ReadonlyauthProtectedenterpriseProtected ReadonlylanguageProtected ReadonlytoProtected ReadonlytokenProtectedcalculateCreate or update language models in the registry.
ProtecteddeduplicateDeduplicates models returned by the Copilot API.
The API returns both alias IDs (e.g., gpt-4o) and versioned IDs
(e.g., gpt-4o-2024-11-20) for the same model family.
We keep only the family alias when it exists, falling back to
the versioned ID otherwise.
Dispose this object.
Fetches the list of available model IDs from the Copilot API. Requires authentication. Returns an empty array if not authenticated or if the API call fails.
ProtectedinitRefresh the status of all Copilot models (e.g., after authentication state changes).
Remove language models from the registry.
Set the GitHub Enterprise URL for Copilot API requests.
Backend implementation of the Copilot language models manager. Manages registration and lifecycle of Copilot language models in the AI language model registry.