k8sgpt-ai / k8sgpt

Giving Kubernetes Superpowers to everyone
http://k8sgpt.ai
Apache License 2.0
5.92k stars 687 forks source link

Getting error "AI provider openai not specified in configuration. Please run k8sgpt auth" while using k8sgpt cli with Azureopenai as backend #1074

Open venkatest opened 7 months ago

venkatest commented 7 months ago

Checklist

Affected Components

K8sGPT Version

v0.3.29

Kubernetes Version

v1.29.1

Host OS and its Version

Windows

Steps to reproduce

image

k8sgpt auth default -p azureopenai

k8sgpt auth add --backend azureopenai --baseurl https://xxxxxx.openai.azure.com --engine gpt3-5 --model gpt-35-turbo

image

image

k8sgpt analyze --explain --filter=Pod

image

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

venkatest commented 7 months ago

Tested it on version 0.3.24 and it is working but not on 0.3.29 image

JuHyung-Son commented 7 months ago

would you move this issue to k8sgpt repository?

venkatest commented 7 months ago

Hi JuHyung-son, I dont have rights to transfer the issue to other repo. I think only the Org/repo owner can do it.

strowi commented 2 months ago

Having a similar issue with v0.3.40 + local ollama:

~> ollama serve &
~ » k8sgpt auth add --backend localai --model mistral --baseurl http://localhost:11434/v1
localai added to the AI backend provider list

~ » k8sgpt analyze --explain --filter=Service
Error: AI provider openai not specified in configuration. Please run k8sgpt auth