TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Python Meta-Client for OpenAI, Anthropic, Gemini and other LLM API-s?

2 pointsby New_Californiaabout 1 year ago
I am looking for a Python library that generalizes over popular LLM API-s without sacrificing full control (need to use tools, control temp, seed, top-p etc).<p>Simon Willison llm seems close but seems to focus much on the CLI and not the library, also doesn&#x27;t seem to give precise control for non-OpenAI models (might be wrong here).

2 comments

jesse_portalabout 1 year ago
Yeah, I was also going to recommend litellm. I&#x27;ve been using it for my LLM assistant app and was able to add support for pretty much any model or provider endpoint by switching out one line of code.
detente18about 1 year ago
Hey, are you just looking for litellm - <a href="https:&#x2F;&#x2F;github.com&#x2F;BerriAI&#x2F;litellm">https:&#x2F;&#x2F;github.com&#x2F;BerriAI&#x2F;litellm</a><p>context - i&#x27;m the repo maintainer