Skip to content

Commit

Permalink
chore: use .get in case usage isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyuma committed Nov 5, 2024
1 parent 80e7f02 commit 71bcbb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def _handle_response_created(
status=response["status"],
status_details=status_details,
output=[],
usage=response["usage"],
usage=response.get("usage"),
done_fut=done_fut,
)
self._pending_responses[new_response.id] = new_response
Expand Down

0 comments on commit 71bcbb3

Please sign in to comment.