elky
|
e58570d79d
|
feat(routing): make client disconnect behavior strategy-scoped
|
2026-09-08 23:11:37 +08:00 |
|
ZheFox
|
2c89202001
|
feat(gateway): add Codex Live and OpenAI Realtime
Implement preflighted Live/Realtime WebSocket transports, protocol-aware authentication, usage auditing, UI filtering, and legacy Codex permission migration.
|
2026-08-21 04:27:34 +08:00 |
|
elky
|
e3d97b573b
|
fix(usage): align fast-tier pricing and model metadata
|
2026-07-18 16:57:04 +08:00 |
|
elky
|
664c063a06
|
feat(usage): enrich audit metadata and detail views
|
2026-07-17 19:20:16 +08:00 |
|
elky
|
0be380243b
|
feat(pricing): support processing tier multipliers
|
2026-07-16 23:30:42 +08:00 |
|
MMEXA
|
3014fd50c6
|
fix(billing): preserve effective cache and tier facts
|
2026-07-11 18:12:55 +08:00 |
|
MMEXA
|
0b30cc6b0f
|
feat(openai): unify tier authorization and settlement
|
2026-07-11 12:27:05 +08:00 |
|
zhefox
|
f6293b6812
|
fix(usage): void cancelled usage and cancel dropped streams
|
2026-06-29 00:30:41 +08:00 |
|
ZheFox
|
c024c782e4
|
feat(billing): add image quality pricing and usage tracking
|
2026-05-18 00:11:30 +08:00 |
|
ZheFox
|
680b617b00
|
feat(gateway): route OpenAI image streams through chat bridge
|
2026-05-17 23:09:50 +08:00 |
|
ZheFox
|
b903f8ff7d
|
fix(usage): estimate cache read tokens for cancelled requests
|
2026-05-17 02:13:13 +08:00 |
|
ZheFox
|
0483d001b4
|
fix(usage): bill cancelled terminal usage and preserve total token estimates
|
2026-05-17 01:11:42 +08:00 |
|
fawney19
|
f695238e8a
|
feat(billing): 引入 billing v3 settlement snapshot 及 usage_billing_facts 视图
- 新增迁移 20260424000000:为 usage_settlement_snapshots 添加 settlement_snapshot、
billing_dimensions、billing_input/output/cache tokens、billing_total_cost_usd 等列,
并创建 usage_billing_facts 视图(从 settlement snapshot 覆盖原始 usage token/cost 字段)
- event_enrichment:构建结构化 settlement_snapshot(含 pricing_snapshot、billing_plan_snapshot、
resolved_dimensions、cost_breakdown 等),写入 request_metadata
- pricing:新增 pricing_source() 方法区分 provider_override / global_default / unpriced
- sql.rs:settlement snapshot 写入新列;用量汇总查询改用 usage_billing_facts 视图
- maintenance/runtime:所有统计查询的 FROM usage 替换为 FROM usage_billing_facts
- admin observability:在 settlement 响应中暴露 settlement_snapshot / billing_dimensions,
并从 metadata 中剥离对应字段
- request_metadata:允许 settlement_snapshot / billing_dimensions 字段传播
- stream execution:在首个数据帧到达时记录 TTFB,补全流式请求的 streaming 事件
|
2026-04-24 17:52:33 +08:00 |
|
fawney19
|
780f09c1a2
|
feat(billing): 引入 model_id 精确计费查找路径,传播模型 ID 至用量事件与 report context
- UsageEventData 新增 model_id / global_model_id 字段,write.rs seed 结构体同步补充
- report_context 新增 model_id / global_model_id / global_model_name,各 payload 构建时从 candidate 传入
- event_enrichment 优先按 model_id 精确查找计费上下文,回退为按名称多轮查找(保留 NoRule 结果降级逻辑)
- BillingReadRepository 新增 find_model_context_by_model_id,memory/sql 分别实现;SQL 查询重构支持按 provider_model_name 和 mappings 匹配并按优先级排序
- pricing.rs 修复:model_tiered_pricing 为空 tiers 时回退到 default_tiered_pricing
- request_metadata 允许字段列表补充 model_id / global_model_id / global_model_name
- admin usage 路由信息输出及脱敏字段列表同步新增三个 model 相关字段
|
2026-04-24 14:40:28 +08:00 |
|
fawney19
|
010ab127e2
|
feat: 扩展 cache creation token 细分统计与 effective_input_tokens 计费逻辑
- 新增 cache_creation_ephemeral_5m/1h_input_tokens 字段,区分不同 TTL 的缓存写入 token
- 引入 effective_input_tokens(扣除 cache read 后的有效输入 token),暴露给 usage 接口
- billing 规则生成器支持 5m/1h ephemeral cache 独立定价与分级计费
- usage_mapper 增加 Claude/Anthropic 格式映射,修复 OpenAI responses 格式字段兼容性
- 迁移逻辑增强:支持 checksum 容错、applied/pending 数量日志、逐步执行信息输出
- executor 抽离 LocalExecutionRequestOutcome 类型,统一 sync/stream 路径返回语义
- provider-transport auth 层新增 complete passthrough headers 构建逻辑
- 前端 usage 类型全面补充 effective_input_tokens、cache_creation_tokens、total_input_context 字段
|
2026-04-10 17:44:55 +08:00 |
|
fawney19
|
5d96d6673b
|
refactor: 大规模模块拆分与代码精简,新增 ai-pipeline/data-contracts 独立 crate
- 新增 aether-ai-pipeline 和 aether-data-contracts crate,将 pipeline 逻辑与数据契约从 gateway 中解耦
- 重构 admin handlers:拆分单体模块为 auth/billing/endpoint/features/model/observability/provider/system 等独立子模块
- 合并 chat/cli 重复代码路径:精简 conversion、finalize、planner 中的 sync/chat/cli 分支
- 重构 scheduler/executor/data 层,引入 facade 模式降低模块间耦合
- 移除冗余的 intent 模块,将 plan_fallback/policy/stream_path/sync_path 迁移至 executor
- 前端适配:调整 admin API 调用和 provider 模型测试对话框
|
2026-04-07 02:50:19 +08:00 |
|
fawney19
|
763ff03a7b
|
refactor: 拆分 gateway 单体为独立 crate,新增 systemd 部署方案
将 gateway 内部的 model-fetch、provider-transport、scheduler-core、
usage-runtime、video-tasks-core 模块提取为独立 crate;重构 gateway
内部模块结构(state/router/cache/data/query 等);移除大量遗留模块
文件;新增 systemd 二进制部署骨架及相关文档;更新前端 usage 相关
API 和组件。
|
2026-04-05 20:23:16 +08:00 |
|