Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
HandlerType() utils.HandlerType
APIType() []utils.APIType
ReplaceModel(body []byte, model string) []byte
Chat(req *Request) (*http.Response, error)
}
Backend 后端适配器统一接口
type BackendOpts ¶ added in v0.7.0
type BackendOpts interface {
HandlerType() utils.HandlerType
}
BackendOpts 后端专有选项的统一接口,各后端定义自己的 Options 类型实现此接口
Click to show internal directories.
Click to hide internal directories.