Documentation
¶
Overview ¶
Package openai provides an OpenAI provider implementation for Bucephalus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*providerConfig)
Option configures the OpenAI provider.
func WithHTTPClient ¶
WithHTTPClient sets a custom HTTP client.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the OpenAI API.
func (*Provider) CallStream ¶
func (p *Provider) CallStream(ctx context.Context, req *provider.Request) (provider.ResponseStream, error)
CallStream implements provider.StreamingProvider.
Click to show internal directories.
Click to hide internal directories.