mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-27 16:07:02 +00:00
feat(grok): free 档本地用量软门禁与支付失败临时下线
对明确 free 的 OAuth 账号在调度路径应用可配置用量窗口门禁(统计失败 fail-open)。 402 payment required / 消费上限类 403 继续临时移出调度,管理端探测不走门禁。
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
1. **模型目录与可配置映射** — 默认禁止 gpt/claude→grok-4.5;设置项 `grok_default_text_model` / `grok_cross_client_model_map_enabled`
|
||||
2. **密码登录 + SSO 校验** — `POST .../oauth/password`、`.../oauth/sso-token`;不落库密码/raw SSO
|
||||
3. **视频按模型族定价** — `groups.video_model_prices` JSONB;计费顺序:模型×分辨率 → 旧三列 → 官方默认
|
||||
4. **free 档本地用量软门禁 + 支付失败临时下线** — `gateway.grok.free_quota_*`;仅明确 free 的 OAuth 走调度过滤器;402 / spending-limit 403 tempUnschedule;管理端探测不走门禁
|
||||
|
||||
## 待续阶段
|
||||
|
||||
- free-tier / cooldown / payment-required 调度
|
||||
- media/voice 增量与错误语义
|
||||
- 网关 tool_choice / active-delta(默认关)/ web_search
|
||||
- 前端 CreateAccount SSO/密码入口
|
||||
|
||||
Reference in New Issue
Block a user