k8sgpt icon indicating copy to clipboard operation
k8sgpt copied to clipboard

[Question]: Add additional parameters to the the auth module for openai

Open jcapril opened this issue 5 months ago • 0 comments

Checklist

  • [X] I've searched for similar issues and couldn't find anything matching
  • [X] I've included steps to reproduce the behavior

Affected Components

  • [X] K8sGPT (CLI)
  • [ ] K8sGPT Operator

K8sGPT Version

No response

Kubernetes Version

No response

Host OS and its Version

No response

Steps to reproduce

Need to use Azure open AI as the backend. We have a organizational limitation of having an additional parameter for accessing the Azure open AI which is "sub_key". How we can add this additional parameters in the auth module

bash k8sgpt auth add --backend azureopenai --baseurl https://<your Azure OpenAI endpoint> --engine <deployment_name> --model <model_name>

Looking for adding one more parameter --sub_key here in the auth module like

bash k8sgpt auth add --backend azureopenai --baseurl https://<your Azure OpenAI endpoint> --engine <deployment_name> --model <model_name> --sub_key<sub_key_value>

Expected behaviour

Allow to add additional parameters to authorize the backend

like bash k8sgpt auth add --backend azureopenai --baseurl https://<your Azure OpenAI endpoint> --engine <deployment_name> --model <model_name> --sub_key<sub_key_value>

Actual behaviour

Authorization error as we have the limitation for additional keys to access the azure openai

Additional Information

No response

jcapril avatar Sep 11 '24 18:09 jcapril