From 90e4cd6f6503cfe5e80f9039b872efcf0c32930d Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Mon, 9 Sep 2024 16:36:50 +0300 Subject: [PATCH] Remove redundant log Signed-off-by: Michael Sverdlov --- general/ai/cli.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/general/ai/cli.go b/general/ai/cli.go index 8713375a1..a7e1c5b27 100644 --- a/general/ai/cli.go +++ b/general/ai/cli.go @@ -23,7 +23,7 @@ import ( type ApiCommand string const ( - cliAiAppApiUrl = "https://cli-ai-app.jfrog.info/api/" + cliAiAppApiUrl = "https://cli-ai-app-stg.jfrog.info/api/" askRateLimitHeader = "X-JFrog-CLI-AI" ) @@ -99,16 +99,16 @@ func getUserFeedback() (bool, error) { // Customize the template to place the options on the same line as the question templates := &promptui.SelectTemplates{ Label: "{{ . }}", - Active: "👉 {{ . | cyan }}", - Inactive: " {{ . }}", + Active: " 👉 {{ . | cyan }}", + Inactive: " {{ . }}", + Selected: "🙏 Thanks for your feedback!", } prompt := promptui.Select{ - Label: "⭐ Rate this response:", - Items: []string{"👍 Good response!", "👎 Could be better..."}, - Templates: templates, - HideHelp: true, - HideSelected: true, + Label: "⭐ Rate this response:", + Items: []string{"👍 Good response!", "👎 Could be better..."}, + Templates: templates, + HideHelp: true, } selected, _, err := prompt.Run() if err != nil {