Documentation ¶
Index ¶
- func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func NewChat(model string) convert.IChildConverter
- func NewFactory() eosc.IExtenderDriverFactory
- func Register(register eosc.IExtenderDriverRegister)
- type Candidate
- type Chat
- type ClientRequest
- type Config
- type Content
- type Converter
- type FNewModelMode
- type ModelConfig
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
Create 创建驱动实例
func NewChat ¶
func NewChat(model string) convert.IChildConverter
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) RequestConvert ¶
type ClientRequest ¶
type ClientRequest struct {
Contents []*Content `json:"contents"`
}
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func (*Converter) RequestConvert ¶
type FNewModelMode ¶
type FNewModelMode func(string) convert.IChildConverter
type ModelConfig ¶
Click to show internal directories.
Click to hide internal directories.