TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 New_California大约 1 年前
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 条评论

jesse_portal大约 1 年前
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.
detente18大约 1 年前
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