Getting error "AI provider openai not specified in configuration. Please run k8sgpt auth" while using k8sgpt cli with Azureopenai as backend
Author: venkatestCreated Apr 7, 2024Updated Aug 25, 2026
Labelsbug
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.29
Kubernetes Version
v1.29.1
Host OS and its Version
Windows
Steps to reproduce
k8sgpt auth default -p azureopenai
k8sgpt auth add --backend azureopenai --baseurl https://xxxxxx.openai.azure.com --engine gpt3-5 --model gpt-35-turbo
k8sgpt analyze --explain --filter=Pod
Expected behaviour
K8sgpt should give analyze results
Actual behaviour
Error: AI provider openai not specified in configuration. Please run k8sgpt auth
Additional Information
I checked this issue : https://github.com/k8sgpt-ai/k8sgpt-operator/issues/98 but didnt help
Source: k8sgpt-ai/k8sgpt