Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelKitHandler ¶
type ModelKitHandler struct {
// contains filtered or unexported fields
}
func NewModelKitHandler ¶
func NewModelKitHandler( echo *echo.Echo, ) *ModelKitHandler
func (*ModelKitHandler) CheckModel ¶
func (h *ModelKitHandler) CheckModel(c echo.Context) error
Check 检查模型
@Tags ModelKitModel
@Summary 检查模型
@Description 检查模型
@ID check-model
@Accept json
@Produce json
@Param model body domain.CheckModelReq true "模型"
@Success 200 {object} domain.Resp{data=domain.Model}
@Router /api/v1/model/modelkit/check [post]
func (*ModelKitHandler) ListModel ¶
func (h *ModelKitHandler) ListModel(c echo.Context) error
List 获取模型列表
@Tags ModelKitModel
@Summary 获取模型列表
@Description 根据筛选条件获取模型列表,支持分页,按创建时间降序排列
@ID list-model
@Accept json
@Produce json
@Param req query domain.ListModelReq true "模型"
@Success 200 {object} domain.Resp{data=[]domain.Model}
@Router /api/v1/model/modelkit/models [get]
type ModelKitPandaAdapter ¶
type ModelKitPandaAdapter struct {
// contains filtered or unexported fields
}
func NewModelKitPandaAdapter ¶
func (*ModelKitPandaAdapter) GetProviderSupportedModelList ¶
func (h *ModelKitPandaAdapter) GetProviderSupportedModelList(c echo.Context) error
get provider supported model list
@Summary get provider supported model list
@Description get provider supported model list
@Tags model
@Accept json
@Produce json
@Param params query domain.GetProviderModelListReq true "get supported model list request"
@Success 200 {object} domain.Response{data=domain.GetProviderModelListResp}
@Router /api/v1/model/provider/supported [get]
func (*ModelKitPandaAdapter) NewResponseWithData ¶
func (h *ModelKitPandaAdapter) NewResponseWithData(c echo.Context, data any) error
func (*ModelKitPandaAdapter) NewResponseWithError ¶
Click to show internal directories.
Click to hide internal directories.