Documentation ¶
Index ¶
- func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func NewFactory() eosc.IExtenderDriverFactory
- func Register(register eosc.IExtenderDriverRegister)
- type Chat
- type ClientRequest
- type Config
- type Content
- type Converter
- type FNewModelMode
- type IModelMode
- type InferenceConfig
- type Message
- type ModelConfig
- type Output
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) RequestConvert ¶
type ClientRequest ¶
type ClientRequest struct { Messages []*Message `json:"message,omitempty"` System *Content `json:"system,omitempty"` InferenceConfig *InferenceConfig `json:"inferenceConfig,omitempty"` }
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func (*Converter) RequestConvert ¶
type FNewModelMode ¶
type FNewModelMode func(string) IModelMode
type IModelMode ¶
type IModelMode interface { Endpoint() string convert.IConverter }
func NewChat ¶
func NewChat(model string) IModelMode
type InferenceConfig ¶
type ModelConfig ¶
Click to show internal directories.
Click to hide internal directories.