mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(gateway): log agent task failures instead of silently losing usage data
This commit is contained in:
parent
fcd619cae4
commit
98ca0694d6
1 changed files with 2 additions and 2 deletions
|
|
@ -1326,8 +1326,8 @@ class APIServerAdapter(BasePlatformAdapter):
|
|||
try:
|
||||
result, agent_usage = await agent_task
|
||||
usage = agent_usage or usage
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as exc:
|
||||
logger.warning("Agent task %s failed, usage data lost: %s", completion_id, exc)
|
||||
|
||||
# Finish chunk
|
||||
finish_chunk = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue