mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-14 04:02:26 +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:
|
try:
|
||||||
result, agent_usage = await agent_task
|
result, agent_usage = await agent_task
|
||||||
usage = agent_usage or usage
|
usage = agent_usage or usage
|
||||||
except Exception:
|
except Exception as exc:
|
||||||
pass
|
logger.warning("Agent task %s failed, usage data lost: %s", completion_id, exc)
|
||||||
|
|
||||||
# Finish chunk
|
# Finish chunk
|
||||||
finish_chunk = {
|
finish_chunk = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue