v1

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

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 NewModelKitPandaAdapter(
	echo *echo.Echo,
	logger *log.Logger,
	isApmEnabled bool,
) *ModelKitPandaAdapter

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

func (h *ModelKitPandaAdapter) NewResponseWithError(c echo.Context, msg string, err error) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL