Versions in this module Expand all Collapse all v1 v1.8.0 Sep 28, 2026 Changes in this version + type Client struct + func New(opts ...Option) (*Client, error) + func (c *Client) Completion(ctx context.Context, content string) (*core.Response, error) + func (c *Client) CompletionStream(ctx context.Context, content string, w io.Writer) (*core.Response, error) + func (c *Client) GetSummaryPrefix(ctx context.Context, content string) (*core.Response, error) + type Option interface + func WithBaseURL(val string) Option + func WithFrequencyPenalty(val float32) Option + func WithHeaders(headers []string) Option + func WithMaxTokens(val int) Option + func WithModel(val string) Option + func WithPresencePenalty(val float32) Option + func WithProxyURL(val string) Option + func WithSkipVerify(val bool) Option + func WithSocksURL(val string) Option + func WithTemperature(val float32) Option + func WithTimeout(val time.Duration) Option + func WithToken(val string) Option + func WithTopP(val float32) Option