v1

package
v1.0.7 Latest Latest
Warning

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

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

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

func (*ModelKit) CheckModel added in v1.0.4

func (p *ModelKit) CheckModel(c echo.Context) error

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

func (p *ModelKit) GetModelList(c echo.Context) error

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]

Jump to

Keyboard shortcuts

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