Documentation
¶
Overview ¶
Package dummy provides a dummy provider implementation for testing and examples.
Index ¶
- type Provider
- func (p *Provider) Generate(ctx context.Context, req gai.GenerateRequest) (*gai.Response, error)
- func (p *Provider) GenerateStream(ctx context.Context, req gai.GenerateRequest) (gai.ResponseStream, error)
- func (p *Provider) GetModel(ctx context.Context, modelID string) (*gai.Model, error)
- func (p *Provider) ID() string
- func (p *Provider) ListModels(ctx context.Context) ([]gai.Model, error)
- func (p *Provider) Name() string
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 is a dummy provider for testing and examples.
func NewProvider ¶
NewProvider creates a new dummy provider.
func (*Provider) GenerateStream ¶
func (p *Provider) GenerateStream(ctx context.Context, req gai.GenerateRequest) (gai.ResponseStream, error)
GenerateStream returns a dummy stream.
func (*Provider) ListModels ¶
ListModels returns a list of dummy models.
Click to show internal directories.
Click to hide internal directories.