Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*callOptions)
Option configures LLM completion.
func WithJSONMode ¶
func WithJSONMode() Option
func WithMaxTokens ¶
func WithTemperature ¶
type Provider ¶
type Provider interface {
Complete(ctx context.Context, prompt string, opts ...Option) (string, error)
Embed(ctx context.Context, text string) ([]float32, error)
EmbedBatch(ctx context.Context, texts []string) ([][]float32, error)
Name() string
ModelID() string
}
Provider is the unified LLM interface.
Click to show internal directories.
Click to hide internal directories.