Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultModel is the recommended default model (fast and capable)
DefaultModel = "gpt-4o-mini"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the OpenAI LLM backend.
func (*Provider) CreateStream ¶
func (p *Provider) CreateStream(ctx context.Context, opts llm.StreamOptions) (<-chan llm.StreamEvent, error)
func (*Provider) DefaultModel ¶
DefaultModel returns the configured default model ID.
func (*Provider) WithDefaultModel ¶
WithDefaultModel sets the default model to use.
Click to show internal directories.
Click to hide internal directories.