Help us shape the future of Go! Take the 2026 Go Developer Survey

githubcopilot

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package githubcopilot provides GitHub Copilot's documented OpenAI Chat and Responses gateway endpoints. The key passed to New is an already-authorized Copilot access token; OAuth device/browser exchange belongs in the caller's authentication layer and is intentionally not hidden in this transport.

Index

Constants

View Source
const (
	DefaultBaseURL = "https://api.githubcopilot.com"
)

Variables

This section is empty.

Functions

func New

func New(selected model.Model, key auth.APIKey, options ...Option) (inference.Client, error)

Types

type CounterSupportError

type CounterSupportError = llm.CounterSupportError

type Option

type Option = simple.Option

func WithHeader

func WithHeader(name, value string) Option

func WithInitiator

func WithInitiator(value string) Option

func WithOpenAIIntent

func WithOpenAIIntent(value string) Option

func WithVision

func WithVision(enabled bool) Option

Jump to

Keyboard shortcuts

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