Repository navigation
TokenRouter 0.1.290
AI API Gateway Platform - 将 AI 订阅配额分发和管理
- 原先 /v1/images/* 只放行 gpt-image-* 与 grok-imagine*,导致经 OpenAI 兼容协议接入的第三方生图模型(qwen-image-2.0、wan2.7-image、gemini-3.1-flash-lite-image)被 400 拒绝;创作台走执行器直连上游不受此限
- 改为复用生图别名判定(isOpenAIImageGenerationModel 或名称含 image),只在端点校验层放宽
- 不动共享的 isOpenAIImageGenerationModel:该函数被图片意图识别、账号图片限流、Codex 生图桥接与定价共 6 处依赖,放宽会误判文本模型
- 不含 image 关键字的普通文本模型仍被拒;新增回归测试覆盖放行与拒绝两侧
📥 Installation
Docker:
# GitHub Container Registry
docker pull ghcr.io/yegetables/tokenrouter:0.1.290One-line install (Linux):
curl -sSL https://raw.githubusercontent.com/yegetables/TokenRouter/main/deploy/install.sh | sudo bashManual download:
Download the appropriate archive for your platform from the assets below.