copilot

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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

func FetchCopilotToken(ctx context.Context, githubToken string) (string, time.Time, error)

func NewHTTPClient

func NewHTTPClient(base *http.Client) *http.Client

func NewModel

func NewModel(copilotToken, modelID string, baseClient *http.Client) *sdk.Model

func NewProvider

func NewProvider(copilotToken string, baseClient *http.Client) sdk.Provider

func ResolveToken

func ResolveToken(ctx context.Context, githubToken string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL