From 6b6cc936fc8f964e3210cc374c586ad519af1120 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Tue, 24 Sep 2024 15:29:18 +0300 Subject: [PATCH] Remove redundant log Signed-off-by: Michael Sverdlov --- docs/general/ai/help.go | 2 +- general/ai/cli.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/general/ai/help.go b/docs/general/ai/help.go index 1d766bb0c..3ae224eb0 100644 --- a/docs/general/ai/help.go +++ b/docs/general/ai/help.go @@ -3,5 +3,5 @@ package ai var Usage = []string{"how"} func GetDescription() string { - return "An AI-based interface that converts natural language inputs into AI-generated JFrog CLI commands." + return "An AI-powered interface that converts natural language inputs into AI-generated JFrog CLI commands." } diff --git a/general/ai/cli.go b/general/ai/cli.go index fd9645ba7..6527c000b 100644 --- a/general/ai/cli.go +++ b/general/ai/cli.go @@ -43,7 +43,7 @@ func HowCmd(c *cli.Context) error { if c.NArg() > 0 { return cliutils.WrongNumberOfArgumentsHandler(c) } - log.Output(coreutils.PrintLink("This AI-based interface converts natural language inputs into AI-generated JFrog CLI commands.\n" + + log.Output(coreutils.PrintLink("This AI-powered interface converts natural language inputs into AI-generated JFrog CLI commands.\n" + "For more information about this interface, see https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/cli-ai\n" + "NOTE: This is an experimental version and it supports mostly Artifactory and Xray commands.\n")) @@ -156,12 +156,12 @@ func sendRestAPI(apiType ApiType, content interface{}) (response string, err err if err = errorutils.CheckResponseStatus(resp, http.StatusOK); err != nil { switch resp.StatusCode { case http.StatusInternalServerError: - err = errorutils.CheckErrorf("CLI-AI model endpoint is not available. Please try again later.") + err = errorutils.CheckErrorf("JFrog CLI-AI model endpoint is not available. Please try again later.") case http.StatusNotAcceptable: err = errorutils.CheckErrorf("The system is currently handling multiple requests from other users\n" + "Please try submitting your question again in a few minutes. Thank you for your patience!") default: - err = errorutils.CheckErrorf("CLI-AI server is not available. Please check your network or try again later. Note that the this command is supported while inside JFrog's internal network only.\n" + err.Error()) + err = errorutils.CheckErrorf("JFrog CLI-AI server is not available. Please check your network or try again later:\n" + err.Error()) } return }