Litelm: LiteLLM Without the Bloat
Posted by kennethwolters 20 hours ago
Comments
Comment by skrellm 4 minutes ago
"Without the Bloat"
vs.
"litellm routes LLM calls across providers and translates between message formats. That core is buried under 100k+ LOC"
Seriously anybody considering 100k+ LOC not a bloat? You made my day!
Let's just say the author's and my definition of bloat is not the same. Full disclosure, I'm the guy who reimplemented etcher (over 400Mb) in a mere 300Kb, Capstone (over 1Mb) in only 66Kb and who compressed LPC charactersheets (over 700Mb) into 4Mb. That's my interpretation of "non-bloated".
Comment by Centigonal 19 hours ago
The only thing I take issue with is the phrase "LiteLLM Without the Bloat." A lot of the features that have been removed (like cost tracking, streaming, caching) are... kind of the core value proposition of LiteLLM for many of their users.
Comment by nylonstrung 7 hours ago
Comment by geek_at 21 minutes ago
The fix was deployed 2 weeks later (!!) to main (but you could downgrade of course).
Or that other time they broke model selection if you had selected "this key can used all models of their team" than the only model in the auto-selection for harnesses was an invalid "all-team-models" entry. Fixes this one in 1 week though.
all of them on the :latest docker tag btw
Comment by raybb 6 hours ago
Comment by more-coffee 4 hours ago
Comment by znpy 6 hours ago
Comment by OutOfHere 19 hours ago
Imagine Sqlite adding heavy features from Postgresql, e.g. row-level security.
Comment by sv123 18 hours ago
Comment by datadrivenangel 18 hours ago
Comment by yujonglee 15 hours ago
Comment by miki123211 2 hours ago
litellm.register("foo", CustomAIProvider)
litellm.do_whatever("foo/my-cool-model", "what is 2+2")Comment by OutOfHere 14 hours ago
Comment by otabdeveloper4 4 hours ago
Comment by mpyne 16 hours ago
Comment by blazarquasar 5 hours ago
https://www.getmaxim.ai/bifrost/resources/benchmarks
Having ran both LiteLLM and Bifrost for months, I can largely confirm the numbers from those benchmarks for myself.
Comment by otabdeveloper4 4 hours ago
Comment by khalic 19 hours ago
Comment by bityard 15 hours ago
Comment by jatins 9 minutes ago
Comment by xg15 4 hours ago
E.g. in the readme: "LiteLLM routes LLM calls across providers and translates between message formats. That core is buried under 100k+ LOC of proxy servers, caching layers [etc...]".
Those two sentences have opposite sentiment on LiteLLM, so a human author would at least put a "but" between them. In contrast, the LLM just strings them together.
This reads "blunt" and "matter-of-fact" at first glance, but I wonder if it's really just an artifact of allocating less space for text generation and more for code in LLMs.
Comment by moron4hire 13 hours ago
"Twelve years Light worked and on a cold night in the year 200X, Protoman was born. A perfect man, an unbeatable machine, hell-bent on destroying every evil standing between man and freedom, built for one purpose, to destroy Wily's army of evil robots. Ready. Willing. Prepared to fight."
For the Protomen it makes sense. But for a project README it's so absurdly melodramatic.
Comment by devinpadron 19 hours ago
Comment by VCFundedGenYer 18 hours ago
Comment by 0xbadcafebee 18 hours ago
Comment by rexpop 18 hours ago
> Please don't post shallow dismissals
> Please don't complain about tangential annoyances—e.g. article or website formats, name collisions, or back-button breakage.
See: Hacker News Guidelines
Comment by khalic 16 hours ago
Comment by Barbing 16 hours ago
Comment by conorcleary 5 hours ago
Comment by ravenstine 18 hours ago
Comment by mark_l_watson 2 hours ago
Thanks for the cool project.
Comment by clickety_clack 18 hours ago
Comment by 9dev 16 hours ago
Comment by dlojudice 16 hours ago
Comment by freshtake 19 hours ago
I think the main thing the readme is missing is the core benefits. Reducing LOC and dependencies is cool, but it would be great to understand if this provides some additional benefits like lower latency or memory requirements.
Comment by hopfenspergerj 17 hours ago
I’m biased but I think mine is coded to a higher standard than litelm. https://github.com/s-banach/langchaint
Comment by isuckatcoding 12 hours ago
Comment by BOOSTERHIDROGEN 5 hours ago
Comment by nperez 11 hours ago
Comment by DrStartup 16 hours ago
Comment by tway235 12 hours ago
Comment by asveikau 13 hours ago
I'm not an AI bro, but I've dabbled. It's kind of remarkable that all the different providers speak the same "openai compatibile" https endpoints. In other realms of software development, real interoperability like that can be kind of rare. Even if people support conceptually the same API, everybody always puts their unique incompatible spin on it. In the dabbling that I've done, big incompatibilities seem rare.
Comment by arjie 18 hours ago
Comment by gcgbarbosa 18 hours ago
Yes, LLMs can do a great job at writing semi-working MVP. Turning it into a usable project still requires a team.
Yeah, maybe for your toy project you can use a LLM written tool.
Also, I am not saying LiteLLM is good either.
Comment by arjie 17 hours ago
Comment by LeBit 19 hours ago
Comment by josephh 18 hours ago
Comment by robertclaus 18 hours ago
Comment by gcgbarbosa 17 hours ago
Comment by yujonglee 15 hours ago
Comment by yujonglee 15 hours ago
Comment by testycool 14 hours ago
Bifrost feels very light, though.
Will try LiteLLM if it's in Rust.
Would also appreciate a slicker aesthetic. I got used to Bifrost shadcn with 0 border radius.
Comment by yujonglee 14 hours ago
I’m happy to provide any support if you’re willing to try out the initial version.
Comment by TZubiri 15 hours ago
Comment by locitra 4 hours ago
Comment by hefu_hk 11 hours ago