Skip to content

Commit

Permalink
Update openhands/core/message_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Calvin Smith <[email protected]>
  • Loading branch information
enyst and csmith49 authored Feb 23, 2025
1 parent 801b134 commit ba267f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhands/core/message_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def get_single_tokens_usage_for_event(
Returns at most one token usage record for the `model_response.id` in this event's
`tool_call_metadata`.
If no response_id is found, or none match in metrics.tokens_usages, returns [].
If no response_id is found, or none match in metrics.tokens_usages, returns None.
"""
if event.tool_call_metadata and event.tool_call_metadata.model_response:
response_id = event.tool_call_metadata.model_response.get('id')
Expand Down

0 comments on commit ba267f0

Please sign in to comment.