mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
fix(data): 统一 usage 内存仓储时间戳单位并通过格式检查
- 将 usage 内存仓储的秒级过滤条件转换为毫秒后再比较 - 汇总 provider api key 最近使用时间时将毫秒转换为秒 - upsert 在缺少 created_at 时默认写入毫秒时间戳 - 补充时间戳单位回归测试 - 调整 registry.rs 格式以通过 cargo fmt --all --check
This commit is contained in:
@@ -118,9 +118,7 @@ pub fn sync_cli_response_conversion_kind(
|
||||
request_conversion_kind(client_api_format.as_str(), provider_api_format.as_str())?;
|
||||
}
|
||||
match client_api_format.as_str() {
|
||||
"openai:cli" | "openai:compact" => {
|
||||
Some(SyncCliResponseConversionKind::ToOpenAIFamilyCli)
|
||||
}
|
||||
"openai:cli" | "openai:compact" => Some(SyncCliResponseConversionKind::ToOpenAIFamilyCli),
|
||||
"claude:cli" => Some(SyncCliResponseConversionKind::ToClaudeCli),
|
||||
"gemini:cli" => Some(SyncCliResponseConversionKind::ToGeminiCli),
|
||||
_ => None,
|
||||
|
||||
Reference in New Issue
Block a user