Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGetBalanceNotImplemented = errors.New("get balance not implemented")
Functions ¶
This section is empty.
Types ¶
type Adaptor ¶
type Adaptor interface { GetChannelName() string GetBaseURL() string GetRequestURL(meta *meta.Meta) (string, error) SetupRequestHeader(meta *meta.Meta, c *gin.Context, req *http.Request) error ConvertRequest(meta *meta.Meta, req *http.Request) (method string, header http.Header, body io.Reader, err error) DoRequest(meta *meta.Meta, c *gin.Context, req *http.Request) (*http.Response, error) DoResponse(meta *meta.Meta, c *gin.Context, resp *http.Response) (*model.Usage, *relaymodel.ErrorWithStatusCode) GetModelList() []*model.ModelConfig }
type KeyValidator ¶
Click to show internal directories.
Click to hide internal directories.