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 Converter
- type IModelMode
- type ModelConfig
- type RequestMessage
- type Response
- type ResponseContent
- type ResponseMessage
- type Tokens
- type Usage
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 []*RequestMessage `json:"messages"`
}
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func (*Converter) RequestConvert ¶
type IModelMode ¶
type IModelMode interface { Endpoint() string convert.IConverter }
type ModelConfig ¶
type RequestMessage ¶
type Response ¶
type Response struct { Id string `json:"id"` Message ResponseMessage `json:"message"` Usage Usage `json:"usage"` FinishReason string `json:"finish_reason"` }
type ResponseContent ¶
type ResponseMessage ¶
type ResponseMessage struct { Role string `json:"role"` Content []ResponseContent `json:"content"` }
Click to show internal directories.
Click to hide internal directories.