Skip to content

Commit

Permalink
Remove redundant log
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Sep 24, 2024
1 parent 86f4f3b commit 6b6cc93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/general/ai/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
6 changes: 3 additions & 3 deletions general/ai/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 6b6cc93

Please sign in to comment.