Documentation ¶
Index ¶
- type Vendor
- type VendorsManager
- func (o *VendorsManager) AddVendors(vendors ...Vendor)
- func (o *VendorsManager) Configure() (err error)
- func (o *VendorsManager) FindByName(name string) Vendor
- func (o *VendorsManager) GetModels() (ret *VendorsModels, err error)
- func (o *VendorsManager) HasVendors() bool
- func (o *VendorsManager) Setup() (ret map[string]Vendor, err error)
- func (o *VendorsManager) SetupFillEnvFileContent(envFileContent *bytes.Buffer)
- func (o *VendorsManager) SetupVendor(vendorName string, configuredVendors map[string]Vendor) (err error)
- type VendorsModels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vendor ¶
type Vendor interface { plugins.Plugin ListModels() ([]string, error) SendStream([]*goopenai.ChatCompletionMessage, *common.ChatOptions, chan string) error Send(context.Context, []*goopenai.ChatCompletionMessage, *common.ChatOptions) (string, error) }
type VendorsManager ¶ added in v1.4.67
type VendorsManager struct { *plugins.PluginBase Vendors []Vendor VendorsByName map[string]Vendor Models *VendorsModels }
func NewVendorsManager ¶ added in v1.4.67
func NewVendorsManager() *VendorsManager
func (*VendorsManager) AddVendors ¶ added in v1.4.67
func (o *VendorsManager) AddVendors(vendors ...Vendor)
func (*VendorsManager) Configure ¶ added in v1.4.67
func (o *VendorsManager) Configure() (err error)
func (*VendorsManager) FindByName ¶ added in v1.4.67
func (o *VendorsManager) FindByName(name string) Vendor
func (*VendorsManager) GetModels ¶ added in v1.4.67
func (o *VendorsManager) GetModels() (ret *VendorsModels, err error)
func (*VendorsManager) HasVendors ¶ added in v1.4.67
func (o *VendorsManager) HasVendors() bool
func (*VendorsManager) Setup ¶ added in v1.4.67
func (o *VendorsManager) Setup() (ret map[string]Vendor, err error)
func (*VendorsManager) SetupFillEnvFileContent ¶ added in v1.4.67
func (o *VendorsManager) SetupFillEnvFileContent(envFileContent *bytes.Buffer)
func (*VendorsManager) SetupVendor ¶ added in v1.4.67
func (o *VendorsManager) SetupVendor(vendorName string, configuredVendors map[string]Vendor) (err error)
type VendorsModels ¶ added in v1.4.67
type VendorsModels struct {
*common.GroupsItemsSelectorString
}
func NewVendorsModels ¶ added in v1.4.67
func NewVendorsModels() *VendorsModels
Click to show internal directories.
Click to hide internal directories.