Documentation
¶
Overview ¶
Package copilot implements the GitHub Copilot dual-protocol provider.
Index ¶
- type Client
- func (c *Client) Chat(ctx context.Context, req request.Request, fn stream.Func) (message.Message, usage.Usage, error)
- func (c *Client) Estimate(_ context.Context, _ request.Request, _ string) (int, error)
- func (c *Client) Model(ctx context.Context, name string) (model.Model, error)
- func (c *Client) Models(ctx context.Context) (model.Models, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the GitHub Copilot provider. It routes requests to either an embedded OpenAI or Anthropic client based on each model's supported endpoints.
func (*Client) Chat ¶
func (c *Client) Chat(ctx context.Context, req request.Request, fn stream.Func) (message.Message, usage.Usage, error)
Chat routes the request to the appropriate underlying provider based on the model's supported endpoints.
Click to show internal directories.
Click to hide internal directories.