Comments (6)
@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.
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.
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.
if they have same inference interface, how about using opensource bankend which can ollama
, localai
can use.
from k8sgpt.
Hello, any comment on this code to support Ollama directly?
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.
Hello, any comment on this code to support Ollama directly?
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)
- Improve K8sGPT Error Reporting for CrashLoopBackOff Pods HOT 2
- [bug]: run k8sgpt analyze will only complete successfully once , after trivy integration is active HOT 5
- [Bug]: invalid parent object in output list
- [Feature]: Support Custom AI backends. HOT 4
- [Bug]: "Ingress uses the secret radio/ as a TLS certificate which does not exist." HOT 1
- [Question]: Integration with Amazon bedrock issue HOT 11
- Report the use of components with vulnerabilities in k8sgpt
- [Feature]: Add Top K as a backend parameter
- [Question]: "An empty namespace may not be set during creation" error HOT 14
- [bug]: failed while calling AI provider openai HOT 3
- [Feature]: AWS integration to k8sgpt-operator.
- [Feature]: Support for AWS_PROFILE
- an empty namespace may not be set during creation for k8sgpt operator controller manager HOT 1
- [Bug]: Windows executable not working properly HOT 2
- [Feature]: Enable IBM Watsonx as one of the LLM AI Backends
- Pass Headers while authenticating to AI backends HOT 1
- [BUG]: Unnecessary RBAC permissions
- docs: update "CLI Installation" section in README.md
- add openai organizationID config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8sgpt.