Re-exports§
pub use tokn_catalogue as catalogue;pub use github_copilot::*;
Modules§
- auth
ProviderAuthimpl for github-copilot.- config
- error
- Provider-layer errors.
- github_
copilot - GitHub Copilot provider.
- headers
- import
- Local-environment credential importers for github-copilot.
- models
- oauth
- GitHub OAuth Device Flow for the Copilot client_id.
- provider
- token
- user
/copilot_internal/user— per-user plan + per-feature quota snapshots.- util
Structs§
- Endpoint
Rule - Per-provider declarative rule mapping a model id glob pattern to the set of endpoints that model is allowed to be served on.
- Header
Patch Ctx - Provider
Info - Request
Ctx - Template
Vars - Correlation metadata extracted from a single inbound HTTP request.
Enums§
Constants§
- COPILOT_
ACCESS_ TOKEN_ URL - COPILOT_
BASE_ URL - COPILOT_
DEVICE_ CODE_ URL - COPILOT_
TOKEN_ EXCHANGE_ URL - COPILOT_
USER_ INFO_ URL - ID_
GITHUB_ COPILOT
Statics§
- DEFAULT_
ENDPOINTS - Endpoints Copilot serves; mirrored on
DESCRIPTOR.endpointsand used to populateProviderInfo::default_endpoints. - DESCRIPTOR
- MODEL_
ENDPOINT_ RULES - Per-model endpoint rules. Mirrors what the official Copilot CLI / VSCode
plugin route — Copilot ships new ids continuously and
/modelsdoes not annotate per-endpoint support, so we pattern-match the id.