Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelKit ¶ added in v1.0.4
type ModelKit struct{}
func NewModelKit ¶ added in v1.0.4
func (*ModelKit) CheckModel ¶ added in v1.0.4
CheckModel 检查模型
@Tags Panda
@Summary 检查模型
@Description 检查模型配置是否正确
@ID panda-check-model
@Accept json
@Produce json
@Param model body domain.CheckModelReq true "模型配置"
@Success 200 {object} domain.Response{data=domain.CheckModelResp}
@Router /api/v1/panda/check [post]
func (*ModelKit) GetModelList ¶ added in v1.0.4
GetModelList 获取模型列表
@Tags Panda
@Summary 获取模型列表
@Description 获取指定提供商的模型列表
@ID panda-get-model-list
@Accept json
@Produce json
@Param provider query string true "模型提供商"
@Param base_url query string true "Base URL"
@Param api_key query string false "API Key"
@Param api_header query string false "API Header"
@Param type query string true "模型类型"
@Success 200 {object} domain.Response{data=domain.GetProviderModelListResp}
@Router /api/v1/panda/models [get]
Click to show internal directories.
Click to hide internal directories.