diff --git a/test/backend/main.go b/test/backend/main.go index 8bd8933..bc2f01d 100644 --- a/test/backend/main.go +++ b/test/backend/main.go @@ -71,12 +71,14 @@ func (p *ModelKitHandler) CheckModel(c echo.Context) error { // 绑定基本字段 req.Provider = c.QueryParam("provider") - req.Model = c.QueryParam("model_name") + req.Model = c.QueryParam("model") req.BaseURL = c.QueryParam("base_url") req.APIKey = c.QueryParam("api_key") req.APIHeader = c.QueryParam("api_header") req.APIVersion = c.QueryParam("api_version") - req.Type = c.QueryParam("model_type") + req.Type = c.QueryParam("type") + + p.logger.Info("CheckModel req:", req) // 单独处理 param 字段 paramStr := c.QueryParam("param") diff --git a/usecase/helper.go b/usecase/helper.go index 4fd559f..7177bde 100644 --- a/usecase/helper.go +++ b/usecase/helper.go @@ -117,7 +117,7 @@ func getInputMsg(req *domain.CheckModelReq) []*schema.Message { inputMsg[0].MultiContent = []schema.ChatMessagePart{ { Type: schema.ChatMessagePartTypeText, - Text: "What's in the picture? Only answer me a word.If you don't support image input, reply no.", + Text: "What's in the picture? Only answer me a word.", }, { Type: schema.ChatMessagePartTypeImageURL,