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 Error
- type IModelMode
- type Message
- type ModelConfig
- type Response
- type ResponseChoice
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:"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 ModelConfig struct { FrequencyPenalty float64 `json:"frequency_penalty"` MaxTokens int `json:"max_tokens"` PresencePenalty float64 `json:"presence_penalty"` ResponseFormat string `json:"response_format"` Temperature float64 `json:"temperature"` TopP float64 `json:"top_p"` TopK float64 `json:"top_k"` }
type Response ¶
type Response struct { Code int `json:"code"` Message string `json:"message"` Choices []ResponseChoice `json:"choices"` Error *Error `json:"error"` }
type ResponseChoice ¶
Click to show internal directories.
Click to hide internal directories.