Documentation ¶ Index ¶ type Corrector func New(apiKey, model, mode, language string) (*Corrector, error) func (c *Corrector) Correct(ctx context.Context, text string) (string, error) func (c *Corrector) StreamCorrect(ctx context.Context, text string, onChunk func(string)) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Corrector ¶ type Corrector struct { // contains filtered or unexported fields } func New ¶ func New(apiKey, model, mode, language string) (*Corrector, error) func (*Corrector) Correct ¶ func (c *Corrector) Correct(ctx context.Context, text string) (string, error) Correct performs a non-streaming correction (fallback) func (*Corrector) StreamCorrect ¶ func (c *Corrector) StreamCorrect(ctx context.Context, text string, onChunk func(string)) error Source Files ¶ View all Source files corrector.go Click to show internal directories. Click to hide internal directories.