mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
- tiktoken 编码器改为 @lru_cache 全局缓存,避免多实例重复初始化 - 前缀匹配按长度排序,避免短前缀抢先匹配 - AuthService 更新 last_used_at 时临时关闭 expire_on_commit,减少额外 SELECT - UsageService.record_usage_batch 改用 bulk_insert_mappings 批量插入 - 已有记录查询增加 selectinload 预加载,避免 N+1 - Gemini normalizer 长行格式化 Co-Authored-By: AAEE86 <33052466+AAEE86@users.noreply.github.com>