adding llm_usage and error_type (#26546)

This commit is contained in:
znn
2025-12-10 06:49:13 +05:30
committed by GitHub
parent 56f8bdd724
commit 1b9165624f
2 changed files with 4 additions and 0 deletions

View File

@@ -334,6 +334,7 @@ class LLMNode(Node[LLMNodeData]):
inputs=node_inputs,
process_data=process_data,
error_type=type(e).__name__,
llm_usage=usage,
)
)
except Exception as e:
@@ -344,6 +345,8 @@ class LLMNode(Node[LLMNodeData]):
error=str(e),
inputs=node_inputs,
process_data=process_data,
error_type=type(e).__name__,
llm_usage=usage,
)
)