Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2026 Changes in this version + const DefaultTimeout + const TimeoutEnvVar + var Anthropic = &Provider + var DeepSeek = &Provider + var Gemini = &Provider + var GitHubCopilot = &Provider + var OpenAI = &Provider + func CleanCopilotResponse(response string) string + func GetTimeout(flagTimeout time.Duration) time.Duration + func IsCopilotAvailable() bool + type APIError struct + Message string + type AnthropicMessage struct + Content string + Role string + type AnthropicRequest struct + MaxTokens int + Messages []AnthropicMessage + Model string + type AnthropicResponse struct + Content []struct{ ... } + Error ... + type AuthType int + const AuthAPIKey + const AuthBearer + const AuthCLI + type ChatRequest struct + MaxTokens int + Messages []Message + Model string + type ChatResponse struct + Choices []struct{ ... } + Error *APIError + type Message struct + Content string + Role string + type Provider struct + AuthType AuthType + Configured bool + DefaultModel string + Endpoint string + EnvVar string + Name string + func Detect() (*Provider, string) + func GetByName(name string) (*Provider, string, error) + func (p *Provider) Query(ctx context.Context, apiKey, model, promptText string) (string, error) + type ProviderInfo struct + Configured bool + DefaultModel string + EnvVar string + Name string + func ListAll() []ProviderInfo