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)
- [Feature]: Getting the error from Status field for HPA Analyzer HOT 3
- k3s node Condition `EtcdIsVoter` Status: True is Normal Considtion but reported as an error.
- [BUG]: Duplicate CVE HOT 1
- [BUG]: Update OpenAI API Key failed HOT 8
- [Bug]: Fail Fast when add auth HOT 2
- [Bug]: k8sgpt serve panic: runtime error: invalid memory address or nil pointer dereference HOT 2
- [Bug]: k8sgpt auth add do not support watsonx
- [Bug]: All backends using `gpt-3.5-turbo` as default model HOT 1
- [Bug]: k8s auth update report exception
- [Bug]: Trivy Analyzer has concurrent map write issue HOT 2
- [Bug]: segmentation violation during serve
- [Bug]: The K8sGPT docker image can't log in the container provisioned with K8sGPT CRD. HOT 1
- [BUG]: Error with Ollama AI provider "unmarshal: invalid character 'p' after top-level value" HOT 5
- [BUG]: Make lint command is not working. HOT 1
- [Question]: Get following error while calling k8sgpt analyze -e : Error: failed while calling AI provider openai: error, status code: 503 HOT 2
- [Feature]: Improve the latency of analysis when there are some errors in cluster HOT 5
- [Feature]: Cilium integration support
- Typo in the k8s api-resource HOT 1
- HelloGitHub Badge HOT 1
- [Feature]: Enable to apply custom LLM Guardrails to the model
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.