Documentation
¶
Overview ¶
Package copilot exposes Copilot authentication and model discovery to SDK consumers.
Index ¶
Constants ¶
const Provider = internalcopilot.Provider
Provider identifies GitHub Copilot credentials.
Variables ¶
This section is empty.
Functions ¶
func FetchModels ¶
func FetchModels(ctx context.Context, client *http.Client, base, token string) (json.RawMessage, error)
FetchModels reads the model catalog for the selected Copilot account.
func TrustedAPI ¶
TrustedAPI reports whether the endpoint can receive a Copilot credential.
Types ¶
type DeviceCode ¶
type DeviceCode = internalcopilot.DeviceCode
DeviceCode contains the data required to complete a device authorization.
func StartDeviceFlow ¶
StartDeviceFlow starts GitHub device authorization.
type HTTPError ¶
type HTTPError = internalcopilot.HTTPError
HTTPError reports the status returned by an upstream request.