Documentation
¶
Overview ¶
Package openai implements the bridle Provider interface for the OpenAI API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements bridle.Provider for the OpenAI API.
func New ¶
New returns an OpenAI provider. If apiKey is empty, the OPENAI_API_KEY environment variable is used.
func NewWithClient ¶
NewWithClient returns an OpenAI provider using a pre-configured client.
func (*Provider) Capabilities ¶
func (p *Provider) Capabilities() bridle.ProviderCapabilities
func (*Provider) Name ¶
func (p *Provider) Name() bridle.ProviderID
Click to show internal directories.
Click to hide internal directories.