mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-09 08:21:50 +00:00
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:
parent
38bcaa1e86
commit
dc9c3cac87
1 changed files with 0 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue