easyai-ai-gateway/apps/api/internal/store
wangbo 8ad5b06c18 feat(api): 添加多媒体内容支持并优化钱包计费系统
- 在 API 接口定义中为 video_url 和 audio_url 类型添加 mime_type 字段
- 实现 Google Gemini 客户端对视频和音频内容的支持,包括媒体类型检测和数据传输
- 添加 Gemini 客户端测试用例验证多媒体内容转换功能
- 重构 Playground 页面的媒体上传逻辑以支持 MIME 类型传递
- 实现钱包计费预留机制,确保任务执行前余额充足
- 添加钱包冻结余额管理,防止并发操作导致的超扣问题
- 实现计费预留释放逻辑,处理任务失败或取消情况下的资金返还
- 优化数据库事务处理,确保计费操作的原子性和一致性
- 添加数据库集成测试验证迁移脚本执行流程
- 统一 Google Gemini 相关模型提供商标识符映射
2026-05-22 23:46:08 +08:00
..
access_rules.go feat: refine api key permissions and admin routes 2026-05-10 23:22:26 +08:00
audit_logs.go feat: add wallet settlement audit flow 2026-05-11 22:59:26 +08:00
base_models.go fix gateway loopback validation chains 2026-05-11 08:48:02 +08:00
candidates_test.go feat: add priority demotion controls 2026-05-12 18:43:20 +08:00
candidates.go feat(api): add load-aware client fallback 2026-05-12 16:59:51 +08:00
catalog_providers.go chore: commit pending gateway changes 2026-05-10 22:34:15 +08:00
file_storage_channels.go feat: add file storage settings and uploads 2026-05-13 20:23:45 +08:00
identity_admin.go feat: refine api key permissions and admin routes 2026-05-10 23:22:26 +08:00
model_billing_filter_test.go feat: improve model catalog aggregation 2026-05-11 17:44:57 +08:00
model_billing_filter.go feat: improve model catalog aggregation 2026-05-11 17:44:57 +08:00
platform_models.go feat: improve model rate limit tracking 2026-05-12 03:22:29 +08:00
postgres.go Add platform status switch 2026-05-12 21:49:08 +08:00
pricing_rules.go feat: improve model catalog aggregation 2026-05-11 17:44:57 +08:00
rate_limit_status_test.go Decouple stream cancellation and clarify failover rules 2026-05-12 21:32:23 +08:00
rate_limit_status.go Decouple stream cancellation and clarify failover rules 2026-05-12 21:32:23 +08:00
rate_limits.go feat: add gateway billing estimate and rate limit details 2026-05-15 01:53:52 +08:00
runner_policies.go feat: add priority demotion controls 2026-05-12 18:43:20 +08:00
runtime_policies.go Restrict priority demotion to same-model peers 2026-05-13 08:37:39 +08:00
runtime_types.go feat: filter candidates by request resolution 2026-05-18 15:50:08 +08:00
tasks_runtime.go feat(api): 添加多媒体内容支持并优化钱包计费系统 2026-05-22 23:46:08 +08:00
tx.go feat: add wallet settlement audit flow 2026-05-11 22:59:26 +08:00
user_group_policy.go feat: add gateway billing estimate and rate limit details 2026-05-15 01:53:52 +08:00
wallet_reservation_test.go feat(api): 添加多媒体内容支持并优化钱包计费系统 2026-05-22 23:46:08 +08:00
wallet.go feat(api): 添加多媒体内容支持并优化钱包计费系统 2026-05-22 23:46:08 +08:00