Versions in this module Expand all Collapse all v0 v0.1.0 Nov 3, 2026 Changes in this version + const ConnectionMessage + const TimeoutMessage + func SupportsLanguage(language string) bool + func Validate(config Config) error + func ValidateBaseURL(raw string) (*url.URL, error) + type AIResponseError struct + Diagnostic ResponseDiagnostic + func (e *AIResponseError) Error() string + type Client struct + func New(options Options) *Client + func (s *Client) TestConnection(ctx context.Context, config Config, key string) error + func (s *Client) Translate(ctx context.Context, request Request, progress ...func(Progress)) (Result, error) + type Config struct + BaseURL string + LibreURL string + Model string + Provider string + TargetLanguage string + type Options struct + GoogleCloudURL string + GoogleURL string + YoudaoURL string + type Progress struct + Completed int + Provider string + RequestID string + TargetLanguage string + Total int + type Request struct + APIKey string + Config Config + Revision string + Text string + type ResponseDiagnostic struct + Category string + FinishReason string + Truncation string + func (d ResponseDiagnostic) Valid() bool + type Result struct + Cached bool + Provider string + Revision string + Sections int + TargetLanguage string + Text string