mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-11 20:51:37 +00:00
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>
This commit is contained in:
parent
69c67bd1d9
commit
ec5e42b8f4
@ -45,7 +45,7 @@ var GenerateCmd = &cobra.Command{
|
|||||||
backendType = backend
|
backendType = backend
|
||||||
}
|
}
|
||||||
fmt.Println("")
|
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) {
|
func printInstructions(isGui bool, backendType string) {
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
if isGui {
|
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("")
|
fmt.Println("")
|
||||||
} else {
|
} 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("")
|
fmt.Println("")
|
||||||
}
|
}
|
||||||
color.Green("Please copy the generated key and run `k8sgpt auth add` to add it to your config file")
|
color.Green("Please copy the generated key and run `k8sgpt auth add` to add it to your config file")
|
||||||
|
Loading…
Reference in New Issue
Block a user