Documentation ¶
Index ¶
- Constants
- 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 Candidate
- type Chat
- type ClientRequest
- type Config
- type Content
- type Converter
- type FNewModelMode
- type IModelMode
- type ModelConfig
- type ModelFactory
- type Response
Constants ¶
View Source
const ( FinishReasonUnspecified = "FINISH_REASON_UNSPECIFIED" FinishStop = "STOP" FinishMaxTokens = "MAX_TOKENS" FinishSafety = "SAFETY" FinishRecitation = "RECITATION" FinishLanguage = "LANGUAGE" FinishOther = "OTHER" FinishBlocklist = "BLOCKLIST" FinishProhibitedContent = "PROHIBITED_CONTENT" FinishSPII = "SPII" FinishMalformedFunctionCall = "MALFORMED_FUNCTION_CALL" )
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 {
Contents []*Content `json:"contents"`
}
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 ModelConfig ¶
type ModelFactory ¶
type ModelFactory struct { }
Click to show internal directories.
Click to hide internal directories.