Comments (4)
Hi @lili-wan thanks for creating this issue.
If you're using an openAI like API you can configure an alternative endpoint e.g.
bash k8sgpt auth new --backend localai --model <model_name> --baseurl http://localhost:8080/v1
Would this work for you? Or do you have a completely different API?
from k8sgpt.
Hi @lili-wan thanks for creating this issue. If you're using an openAI like API you can configure an alternative endpoint e.g.
bash k8sgpt auth new --backend localai --model <model_name> --baseurl http://localhost:8080/v1
Would this work for you? Or do you have a completely different API?
Is it necessary to provide a localai sample project for user to make integration with their self hosted llm? Just a suggestion. @AlexsJones
from k8sgpt.
Hi @lili-wan thanks for creating this issue. If you're using an openAI like API you can configure an alternative endpoint e.g.
bash k8sgpt auth new --backend localai --model <model_name> --baseurl http://localhost:8080/v1
Would this work for you? Or do you have a completely different API?
Is it necessary to provide a localai sample project for user to make integration with their self hosted llm? Just a suggestion. @AlexsJones
There are lots of tutorials on how to use k8sgpt/localAI.
The question I have is regarding @lili-wan use case for a generic restful API.
from k8sgpt.
I've tried to setup the localai to point to a local endpoint made with huggingface tgi.
k8sgpt auth update localai --model tgi --baseurl https://deepseek.k8scluster.ch/v1
but I get a
➜ k8sgpt analyze -b localai --explain
0% | | (0/17, 0 it/hr) [0s:0s]
Error: failed while calling AI provider localai: error, status code: 422, message:
Running a test query although works fine
curl https://deepseek.k8scluster.ch/v1/chat/completions \
-X POST \
-d '{
"model": "tgi",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What is deep learning?"
}
],
"stream": true,
"max_tokens": 100
}' \
-H 'Content-Type: application/json'
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
- [Feature]: support Ollama backend HOT 6
- [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 HOT 1
- [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. HOT 1
- [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 HOT 2
- Pass Headers while authenticating to AI backends HOT 1
- [BUG]: Unnecessary RBAC permissions HOT 2
- docs: update "CLI Installation" section in README.md
- add openai organizationID config HOT 3
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.