mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
- 剥 tag 查价:名字未命中时剥掉 ":tag" 重跑整条查找链,会经家族/OpenAI 末端 catch-all 把 gpt-oss:latest 等猜成 gpt-5.4 价,并让 ollama 保存期门禁与请求期预检 误判为已定价(约 36~50 倍误计)。第二级改为只接受目录确定性识别与回退价表精确键; OpenAI 回退链排除扩展到所有带 tag 的 gpt-oss 名(含 gpt-oss-safeguard:20b)。 - generic 预检:composite 跨族账号池经 Anthropic 协议链服务 ollama_cloud 账号时没有 请求期定价预检,无价模型先被服务再按 0 元计费。GatewayService.buildUpstreamRequest (覆盖 Forward / ForwardAsResponses / ForwardAsChatCompletions)复用同一无价判定, 上游 I/O 前按入站协议信封返回 400,不触发换号。