chore: remove redundant local import of normalize_usage

Already imported at module level (line 94). The local import inside
_usage_summary_for_api_request_hook was unnecessary.
This commit is contained in:
Teknium 2026-04-05 22:44:48 -07:00 committed by Teknium
parent 38bcaa1e86
commit dc9c3cac87

View file

@ -2433,8 +2433,6 @@ class AIAgent:
return None
from dataclasses import asdict
from agent.usage_pricing import normalize_usage
cu = normalize_usage(raw_usage, provider=self.provider, api_mode=self.api_mode)
summary = asdict(cu)
summary.pop("raw_usage", None)