Comments (4)
Et voila, you can now use LiteLLM :)
If you use an user with admin privileges just add a new LLM using the "LiteLLM" class and specify the parameters you want for this LLM.
![image](https://private-user-images.githubusercontent.com/597413/318325487-09600dab-b9c9-4f86-be44-8d038c806063.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTg3NTIsIm5iZiI6MTcyMTQ1ODQ1MiwicGF0aCI6Ii81OTc0MTMvMzE4MzI1NDg3LTA5NjAwZGFiLWI5YzktNGY4Ni1iZTQ0LThkMDM4YzgwNjA2My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyMFQwNjU0MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZDA5OWU3NDdjMTRhZTIxOWQ0MmMyZWE4YzVlNzk1MTk4YzcyNmFkNmFlYmY3N2I3NzlkYmNkYmQzZjNhOTBhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.J9uq4QsypRuk63xp-TN2O97cJ5qUeRonHsMvuwurZg8)
In master, published in the next release.
from restai.
We already support any LLM that Ollama supports, you don't need any code to add a LLM. You are able to do it via browser in this case :)
Besides Ollama for local LLMs, any public LLM supported by Llamaindex is also easily supported.
So I believe we are well served regarding LLMs for now :)
from restai.
https://docs.llamaindex.ai/en/stable/examples/llm/litellm/ its veryyy easy to add support for litellm in RestAI.
I will add it in the next release :)
from restai.
@apocas thanks will test later for sure :-)).Problem with ollama only was that in ollama you have to download and then run the heavy model on your system and then you can use its base url in other project like this one which will act as llm source to generate response but in case of litellm we can use any kind of model be it close source like open ai,claud or Gemini or open source model running with public api like groq which is providing mixtral,Gemma,llama or running locally by ourself with ollama so it solves the issue of running multiple types of llm with single api structure which is very convenient and easy to use and that's why i wanted that in this project
from restai.
Related Issues (11)
- questionsql returns error 500 HOT 1
- Please add at least one cloud vector database like pinecone
- Please provide requirements. txt HOT 1
- a question and suggestion HOT 1
- Feature Request: Custom API Key Support for Inference and Embedding
- Discussion regarding contributing in the project HOT 1
- Agentic RAG and Advanced Retrieval Strategies
- Alternative way to import OPENAI? HOT 1
- Trending in RAG Community : Knowledge Graph Integration
- Inquiry About Chat Loading Mechanism in ReAct Agent Code
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 restai.