Documentation
¶
Index ¶
- Constants
- func FetchCopilotToken(ctx context.Context, githubToken string) (string, time.Time, error)
- func NewHTTPClient(base *http.Client) *http.Client
- func NewModel(copilotToken, modelID string, baseClient *http.Client) *sdk.Model
- func NewProvider(copilotToken string, baseClient *http.Client) sdk.Provider
- func ResolveToken(ctx context.Context, githubToken string) (string, error)
Constants ¶
View Source
const ( GitHubOAuthClientID = "Iv1.b507a08c87ecfe98" GitHubOAuthScope = "read:user user:email" DefaultAPIBaseURL = "https://api.githubcopilot.com" )
Variables ¶
This section is empty.
Functions ¶
func FetchCopilotToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.