[Bug]: generate command only provides static URL of openai
Opened this issue · 0 comments
amitamrutiya commented
Checklist
- I've searched for similar issues and couldn't find anything matching
- I've included steps to reproduce the behavior
Affected Components
- K8sGPT (CLI)
- K8sGPT Operator
K8sGPT Version
v0.3.26
Kubernetes Version
v1.29.1
Host OS and its Version
Linux 22.04.3 LTS
Steps to reproduce
- Run the
k8sgpt generate -b=azureopenai
command to set up API keys. - Note that the command outputs a static URL directing users to the OpenAI website for key generation, regardless of the selected backend provider.
Expected behaviour
The generate command should dynamically provide the appropriate URL for API key generation based on the selected backend provider. This would streamline the setup process and ensure that users are directed to the correct platform for generating the required API keys.
Actual behaviour
When running the k8sgpt generate command to set up API keys for backend providers other than OpenAI, then got a static URL directing them to the OpenAI website for key generation. This behaviour persists regardless of the chosen backend provider, leading to confusion and inefficiency in the setup process.
Additional Information
If this issue is looks valid, I would like to work on it.