Skip to content

Commit

Permalink
Handle null output
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhai committed Nov 11, 2024
1 parent 5b641bf commit 1d414f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llmstack/apps/jobs/app_run_finished.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def request_body(self):

@property
def response_body(self):
if self.output:
return self.output.get("output") or ""
return self.output.get("output", "") if self.output and isinstance(self.output, dict) else ""

@property
def is_store_request(self):
Expand Down

0 comments on commit 1d414f2

Please sign in to comment.