mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-05-05 20:39:35 +00:00
feat: 添加对 ephemeral 5m 和 1h 令牌的支持,优化费用计算逻辑
This commit is contained in:
@@ -1599,6 +1599,8 @@ class ApiKeyService {
|
||||
outputTokens,
|
||||
cacheCreateTokens,
|
||||
cacheReadTokens,
|
||||
0, // ephemeral5mTokens - recordUsage 不含详细缓存数据
|
||||
0, // ephemeral1hTokens - recordUsage 不含详细缓存数据
|
||||
model,
|
||||
isLongContextRequest
|
||||
)
|
||||
@@ -1834,6 +1836,8 @@ class ApiKeyService {
|
||||
outputTokens,
|
||||
cacheCreateTokens,
|
||||
cacheReadTokens,
|
||||
ephemeral5mTokens,
|
||||
ephemeral1hTokens,
|
||||
model,
|
||||
costInfo.isLongContextRequest || false
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user