Commit Graph
73 Commits
Author SHA1 Message Date
xpp 5d6253cbf1 fix:"统一媒体结果校验并补齐交付状态" 2026-10-28 13:44:52 +08:00
xppandClaude Opus 5.5 aef5356c54 feat:"拆分上游首字节/空闲/总期限并在执行期间续期预留与并发租约"
- OpenAiCompatibleProvider:总期限上限 3600 秒(默认仍 90),新增首字节与空闲超时,流式有数据即重置空闲窗口
- GatewayRequestExecutionService:调用期间定时续期钱包预留与 Redis 租约,结束即停
- ChatBillingService.renew 只延长 pending 预留;GatewayGuard 只续仍持有的租约,丢失不重建
- 新增本地 Docker 启动覆盖文件(预编译产物,仅监听 127.0.0.1)
- 新增流式空闲/长流、续期、过期恢复不释放运行中调用、租约续期回归

验证:mvn -B -o clean verify 409 项通过(独立 PostgreSQL/Redis)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 15:25:28 +08:00
xppandClaude Opus 5.5 1a608f8ff8 fix:"模型准入改为公平排队并收紧渠道凭据与目录暴露"
- acquire-pair.lua 增加模型到达顺序队列:空闲槽位先给更早等待者,超时/放弃/过期即出队,仅因自身 Key 满的等待者不占模型队位
- 修改渠道 Base URL 必须重新填写凭据,阻止已存密钥被发送到新地址;审计记录新旧地址
- 普通用户模型目录只返回渠道 id/name/status,不再暴露 Base URL 和凭据掩码
- 管理端用量 CSV 导出中和公式前缀
- 新增真实 Redis 公平准入、渠道凭据重填、目录字段和 CSV 回归

验证:mvn -B -o clean verify 403 项通过(独立 PostgreSQL/Redis)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 12:06:41 +08:00
xppandClaude Opus 5.5 2e53b1d9c8 fix:"规范音视频任务结果并按真实能力标识音频执行"
- 新增 AsyncTaskResponseNormalizer:解析 content/result/嵌套 data 回执与 {url} 对象,仅白名单媒体字段,裸字符串只接受 URL
- 视频/音频上游完成但无结果文件时标记 deliveryStatus=pending,结算一次、不重发不退款
- 目录与执行共用 AsyncMediaSupport.supportsSpeech;非 TTS 音频、专用渠道任务类型错配、非法语音参数在发送前拒绝
- 任务响应返回 taskType/completedAt,前端以持久任务类型优先,补音频 MIME、签名 URL 与未交付提示
- 新增 29 号 CPR 差距分析与优化方案文档,更新 24 号任务表 MED-01/02/03

验证:mvn -B -o clean verify 399 项通过(独立 PostgreSQL/Redis);前端构建与 27 项测试通过

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 11:48:47 +08:00
xpp ba5dbc195e fix:"隔离验证码投递并统一密码重置受理"
Repository verification / frontend (push) Canceled after 0s
Repository verification / backend (push) Canceled after 0s
2026-10-22 08:49:04 +08:00
xpp 02c21e5c19 fix:"保证验证码消费与账号变更原子提交" 2026-10-21 23:09:02 +08:00
xpp 32f6f67b9f fix:"修复媒体下载DNS重绑定并隔离出站传输" 2026-10-21 22:49:57 +08:00
xpp 926aa64ba3 feat: bound async HTTP attempts and track remaining security work 2026-10-21 22:07:56 +08:00
xpp d994ffb9a5 fix: harden authentication and revoke stale sessions 2026-10-21 22:05:43 +08:00
xpp c716ec7478 feat: add audited async task reconciliation and frozen bindings 2026-10-21 20:08:38 +08:00
xpp 5be06a97c1 fix: retain async holds for unknown provider outcomes 2026-10-21 18:57:35 +08:00
xpp 76265845dc feat: make async task creation durably idempotent 2026-10-21 18:41:21 +08:00
xpp 5533a483d9 feat: modularize gateway requests and recover settlements 2026-10-21 18:24:30 +08:00
wlx 8a13ef9c02 Fix verified image pricing and settle async image usage 2026-10-13 20:13:21 +08:00
wlx af43947b5d feat: extend enterprise gateway policies billing protocols and operations 2026-10-13 19:08:50 +08:00
wlx 512ca52262 fix: reconcile source currencies and retail token pricing 2026-10-12 17:42:30 +08:00
wlx ea9069e332 fix: expose implemented async relay executors 2026-09-30 12:50:27 +08:00
wlx d8e05beb13 fix: preserve flyway migration history 2026-09-29 20:56:23 +08:00
wlx 8336d9ba3b fix: resolve duplicate flyway migration version 2026-09-29 20:41:12 +08:00
wlx 3969a50eee fix: restore ordinary user overview and correct brand name 2026-09-29 19:50:10 +08:00
wlx 558c0dcdd5 fix: scope provider model keys and pin async credentials 2026-09-29 17:00:55 +08:00
wlx 58dc904c98 fix: preserve model key for async polling 2026-09-29 15:10:27 +08:00
wlx 0876dfe08e feat: route upstream keys by model group 2026-09-29 14:46:02 +08:00
wlx ce0a718686 fix: remove artificial model group concurrency cap 2026-09-29 12:46:10 +08:00
wlx 9b98de3efa feat: complete docs navigation and media task metadata 2026-09-29 02:10:49 +08:00
wlx c445dd035f fix: validate provider media input tokens 2026-09-29 01:57:18 +08:00
wlx 6095a9e1cc fix: reuse relay key across video endpoint fallback 2026-09-29 01:53:49 +08:00
wlx 7a996755b2 fix: enable playground media task routes 2026-09-29 01:50:32 +08:00
wlx eda7312388 fix: handle media download interruptions 2026-09-29 01:38:11 +08:00
wlx e6d23afd58 fix: preserve provider image response formats 2026-09-29 01:32:06 +08:00
wlx 94eaee7b95 feat: publish readable model ids and media task adapters 2026-09-29 01:29:07 +08:00
wlx 88c55cc6a9 fix: classify budget errors in error envelopes 2026-09-28 08:49:03 +08:00
wlx e0c926104e fix: keep upstream token budgets billing-safe 2026-09-28 08:39:04 +08:00
wlx 4ec47cdb23 fix: normalize relay request compatibility and classify errors 2026-09-28 08:12:07 +08:00
wlx 8a2591ef51 fix: quarantine confirmed unavailable catalog routes 2026-09-28 07:40:17 +08:00
wlx 144b6b41d2 fix: restore live route quarantine migration 2026-09-28 06:48:23 +08:00
wlx 4cd7012788 fix: preserve upstream routes pending protocol and live diagnosis 2026-09-28 06:46:43 +08:00
wlx 59907cebdf fix: quarantine unavailable upstream routes and harden upgrades 2026-09-28 06:34:15 +08:00
wlx 9acc69d4c7 fix: classify upstream failures and prevent empty billed responses 2026-09-28 04:55:00 +08:00
wlx b455d8d79f fix: show task model list prices accurately 2026-09-27 23:21:35 +08:00
wlx b2266d7e9d expose route metadata and remove stale route docs 2026-09-27 21:24:12 +08:00
wlx 8e9f0d52fd fix async dispatch stats and truthful status 2026-09-27 19:55:17 +08:00
wlx 9750aceb03 fix async queue and provider key rotation 2026-09-27 18:05:35 +08:00
wlx 962eef26e5 integrate official Tripo async models 2026-09-27 16:45:36 +08:00
wlx a022162382 publish all priced relay groups 2026-09-27 16:04:23 +08:00
wlx a80896e3c7 complete reset async billing and upstream key rotation 2026-09-27 14:58:24 +08:00
wlx b54b6a8ac4 report key and model queue saturation separately 2026-09-27 03:17:44 +08:00
wlx 0e6fca81b3 add queued gateway admission and finish admin monitoring 2026-09-27 02:58:16 +08:00
wlx 5652a52998 test gateway readiness and classify upstream failures 2026-09-26 02:35:30 +08:00
wlx e86a7b1e79 fix pricing migration syntax 2026-09-26 01:17:05 +08:00