diff --git a/app/views/messages/_message.html.erb b/app/views/messages/_message.html.erb index 75704adf3..7d6f9a796 100644 --- a/app/views/messages/_message.html.erb +++ b/app/views/messages/_message.html.erb @@ -245,6 +245,24 @@ end <% end %> + <% if last_message %> + <% input_tokens = conversation.messages.sum(:input_token_count) %> + <% output_tokens = conversation.messages.sum(:output_token_count) %> + + + <% end %> <% end %>