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)
- func Sign(ctx http_service.IHttpContext, secretId string, secretKey string) error
- type Chat
- type Choice
- type ClientRequest
- type Config
- type Converter
- type FNewModelMode
- type IModelMode
- type Message
- type ModelConfig
- type Response
- type ResponseInfo
- type Usage
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 Sign ¶
func Sign(ctx http_service.IHttpContext, secretId string, secretKey string) error
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 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 Response ¶
type Response struct {
Response *ResponseInfo `json:"Response"`
}
type ResponseInfo ¶
Click to show internal directories.
Click to hide internal directories.