Code Monkey home page Code Monkey logo

Comments (6)

liyimeng avatar liyimeng commented on June 12, 2024

@yankay I think it is already supported, see #981

basically, u do

root@testing:/# k8sgpt auth add --backend localai --model tinyllama --baseurl http://my-ollama:8080/v1
localai added to the AI backend provider list

from k8sgpt.

wilmardo avatar wilmardo commented on June 12, 2024

On my Mac I did this to make it work. Installed ollama as application, then:

k8sgpt auth add --backend localai --model llama2 --baseurl http://localhost:11434/v1
k8sgpt auth default -p localai. # sets it as default, not really needed

from k8sgpt.

arbreezy avatar arbreezy commented on June 12, 2024

yes we can use localai, cause both support the OpenAI's API spec, but I guess we can surface it as its own backend since it's a different project that localai

from k8sgpt.

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

if they have same inference interface, how about using opensource bankend which can ollama, localai can use.

from k8sgpt.

ronaldpetty avatar ronaldpetty commented on June 12, 2024

Hello, any comment on this code to support Ollama directly?

#1131

Seems to be working locally for me.

# run ollama, assuming locally, here with llama3
make build
./bin/k8sgpt auth add --backend ollama --model llama3 --baseurl http://localhost:11434/v1
kubectl run brokenpod --image=breakit:v1.2.3 
./bin/k8sgpt analyze --explain --backend ollama # output looks good

from k8sgpt.

yankay avatar yankay commented on June 12, 2024

Hello, any comment on this code to support Ollama directly?

#1131

Seems to be working locally for me.

# run ollama, assuming locally, here with llama3
make build
./bin/k8sgpt auth add --backend ollama --model llama3 --baseurl http://localhost:11434/v1
kubectl run brokenpod --image=breakit:v1.2.3 
./bin/k8sgpt analyze --explain --backend ollama # output looks good

HI @ronaldpetty , follow the #1065 (comment).
Using the official go client makes more sense than the OpenAI client. :-)

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.