Skip to content

Commit

Permalink
feat: update langfuse tool_trace error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouhaoJiang committed Jun 27, 2024
1 parent ebc91a5 commit 3585bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/ops/langfuse_trace/langfuse_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def tool_trace(self, trace_info: ToolTraceInfo):
start_time=trace_info.start_time,
end_time=trace_info.end_time,
metadata=trace_info.metadata,
level=LevelEnum.DEFAULT if trace_info.error == "" else LevelEnum.ERROR,
level=LevelEnum.DEFAULT if trace_info.error == "" or None else LevelEnum.ERROR,
status_message=trace_info.error,
)

Expand Down

0 comments on commit 3585bfc

Please sign in to comment.