mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
feat(usage): 在 CanonicalUsage 中追加缓存 token 字段并在标准化流程透传
- 扩展 CanonicalUsage 支持 cache_creation/cache_read 及 5m/1h 明细 - OpenAI/Claude/Gemini 解析器提取缓存 token 并计入 total - usage_mapper 补齐 Claude 缓存字段映射 - 新增 gateway pricing 集成测试覆盖三家同步/流式缓存计费
This commit is contained in:
@@ -178,4 +178,5 @@ pub(super) fn sample_local_openai_key() -> StoredProviderCatalogKey {
|
||||
|
||||
mod direct;
|
||||
mod local;
|
||||
mod pricing;
|
||||
mod wallet;
|
||||
|
||||
1266
apps/aether-gateway/src/tests/usage/pricing.rs
Normal file
1266
apps/aether-gateway/src/tests/usage/pricing.rs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user