Documentation
¶
Index ¶
- Constants
- func Factory(cfg Config) (litellm.Provider, error)
- func NewClient(cfg Config, opts ...litellm.ClientOption) (*litellm.Client, error)
- type Config
- type HTTPClient
- type Provider
- func (p *Provider) Capabilities(model string) litellm.Capabilities
- func (p *Provider) Chat(ctx context.Context, req *litellm.Request) (*litellm.Response, error)
- func (p *Provider) ListModels(ctx context.Context) ([]litellm.ModelInfo, error)
- func (p *Provider) Name() string
- func (p *Provider) Stream(ctx context.Context, req *litellm.Request) (litellm.Stream, error)
Constants ¶
View Source
const ( ProviderOptionSafetySettings = "safety_settings" ProviderOptionTopK = "top_k" ProviderOptionCandidateCount = "candidate_count" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Capabilities ¶ added in v1.8.1
func (p *Provider) Capabilities(model string) litellm.Capabilities
func (*Provider) ListModels ¶
Click to show internal directories.
Click to hide internal directories.