From ec5e42b8f43e90632bb62dd89cc6aa3665e0f60d Mon Sep 17 00:00:00 2001 From: 100daysofdevops <47483190+100daysofdevops@users.noreply.github.com> Date: Sun, 24 Nov 2024 23:32:11 -0800 Subject: [PATCH] fix: update OpenAI API key generation URL to reflect new platform link (#1331) Updated the outdated URL 'https://beta.openai.com/account/api-keys' to the current OpenAI API key generation page 'https://platform.openai.com/account/api-keys'. This resolves the issue where users were directed to an incorrect URL when generating an OpenAI API key. Signed-off-by: 100daysofdevops <47483190+100daysofdevops@users.noreply.github.com> --- cmd/generate/generate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/generate/generate.go b/cmd/generate/generate.go index 271cf32f39..e01f743d40 100644 --- a/cmd/generate/generate.go +++ b/cmd/generate/generate.go @@ -45,7 +45,7 @@ var GenerateCmd = &cobra.Command{ backendType = backend } fmt.Println("") - openbrowser("https://beta.openai.com/account/api-keys") + openbrowser("https://platform.openai.com/api-keys") }, } @@ -81,10 +81,10 @@ func openbrowser(url string) { func printInstructions(isGui bool, backendType string) { fmt.Println("") if isGui { - color.Green("Opening: https://beta.openai.com/account/api-keys to generate a key for %s", backendType) + color.Green("Opening: https://platform.openai.com/api-keys to generate a key for %s", backendType) fmt.Println("") } else { - color.Green("Please open: https://beta.openai.com/account/api-keys to generate a key for %s", backendType) + color.Green("Please open: https://platform.openai.com/api-keys to generate a key for %s", backendType) fmt.Println("") } color.Green("Please copy the generated key and run `k8sgpt auth add` to add it to your config file")