Show HN: GoModel – 一个开源 AI 网关 – LiteLLM 替代方案
Show HN: GoModel – an open-source AI gateway – LiteLLM alternative

原始链接: https://gomodel.enterpilot.io/

发送你的第一个 API 调用,保持 OpenAI 兼容的请求格式,并将其指向 GoModel。 API 调用: curl http://localhost:8080/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-5-chat-latest", "messages": [{ "role": "user", "content": "Hello!" }] }' 已经在使用 OpenAI SDK?更改 base_url 并保留代码其余部分。 Python OpenAI SDK: from openai import OpenAI client = OpenAI( base_url="http://localhost:8080/v1", api_key="your-gomodel-key", )

GoModel 是一个开源 AI 网关,定位为 LiteLLM 的替代方案。自四月发布以来,已获得 145K+ Docker 拉取和 45+ 贡献者,部分企业正在迁移。它通过单一的 OpenAI/Anthropic 兼容接口路由 AI 流量,支持支出追踪、可观测性、预算、速率限制和防护栏。近期新增包括 MCP 代理、插件、Anthropic 兼容 API、迁移工具和 25+ 提供商。作者指出 LiteLLM 安全问题及其他网关项目关闭后留下的市场空白,并称基于可复现基准,GoModel 比 LiteLLM 更快、更轻量。他们寻求生产环境反馈。
相关文章

原文

Send your first API call

Keep the OpenAI-compatible request shape and point it at GoModel.

API Call
curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-chat-latest",
    "messages": [{
      "role": "user",
      "content": "Hello!"
    }]
  }'

Already using an OpenAI SDK? Change base_url and keep the rest of your code.

Python OpenAI SDK
from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:8080/v1",
    api_key="your-gomodel-key",
)
联系我们 contact @ memedata.com