Skip to content

Commit

Permalink
log total tokens genreated
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Jul 5, 2024
1 parent 31b1ffb commit c64f881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chatbot_ros/chatbot_ros/states/llama_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def handle_result(
) -> str:

self._node.get_logger().info(result.response.text)
self._node.get_logger().info(
f"Total tokens: {len(result.response.tokens)}")

self._tts_end_event.clear()
self._tts_end_event.wait()
Expand Down

0 comments on commit c64f881

Please sign in to comment.