Coder Social home page Coder Social logo

Comments (3)

JuHyung-Son avatar JuHyung-Son commented on June 16, 2024

Are you sure you've got the settings right? I don't see any issues with k8sgpt.

from k8sgpt.

njnuwjq avatar njnuwjq commented on June 16, 2024

thanks for your reply

got the security key from openapi here

NAME <> CREATED LAST USED CREATED BY PERMISSIONS

and pasted it @ step 2
~ % k8sgpt auth
Warning: backend input is empty, will use the default value: openai
Warning: model input is empty, will use the default value: gpt-3.5-turbo
Enter openai Key: <<< pasted the security key here

not any error occurs, just report that openai added to the AI backend provider list

checked the configuration file but there's nothing
--config string Default config file (/Users/xxxxxx/Library/Application Support/k8sgpt/k8sgpt.yaml)
ls /Users/xxxxxx/Library/Application Support/k8sgpt/k8sgpt.yaml
ls: /Users/xxxxxx/Library/Application: No such file or directory

~ % k8sgpt auth list
Default:

openai
Active:
openai
Unused:

also tried with configuration file
~ % cat k8sgpt.yaml
openai:
api_key: sk-k8s-olTikkFN5cfolIz2ym6xxxxxx

~ % k8sgpt analyse --explain --config ./k8sgpt.yaml
Error: AI provider not specified in configuration. Please run k8sgpt auth

from k8sgpt.

njnuwjq avatar njnuwjq commented on June 16, 2024

here miss a \ after /Users/xxxxx/Library/Application

--config string Default config file (/Users/xxxxxx/Library/Application Support/k8sgpt/k8sgpt.yaml)

% cat /Users/xxxxx/Library/Application\ Support/k8sgpt/k8sgpt.yaml
ai:
providers:
- name: openai
model: gpt-3.5-turbo
temperature: 0.7
topp: 0.5
maxtokens: 2048
- name: openai
model: gpt-3.5-turbo
password: sk-proj-zBPbDQdWE7ai9iaGR1iWT3BlbkFJLQ2KJKyQrWtXOu6ZpMg6
temperature: 0.7
topp: 0.5
maxtokens: 2048

the first provider don't provide password and it's always try with the first one
thus it failed all the time

so it's solved

from k8sgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.