%= content_for :page_title, t(".page_title") %>
<%= t(".subtitle") %>
<%= t(".total_requests") %>
<%= number_with_delimiter(@statistics[:total_requests]) %>
<%= t(".total_tokens") %>
<%= number_with_delimiter(@statistics[:total_tokens]) %>
<%= number_with_delimiter(@statistics[:total_prompt_tokens]) %> <%= t(".prompt") %> / <%= number_with_delimiter(@statistics[:total_completion_tokens]) %> <%= t(".completion") %>
<%= t(".total_cost") %>
$<%= sprintf("%.2f", @statistics[:total_cost]) %>
<%= t(".avg_cost_per_request") %>
$<%= sprintf("%.4f", @statistics[:avg_cost]) %>
<% if @statistics[:requests_with_cost] < @statistics[:total_requests] %><%= t(".based_on_requests", with_cost: number_with_delimiter(@statistics[:requests_with_cost]), total: number_with_delimiter(@statistics[:total_requests])) %>
<% end %>| <%= t(".col_date") %> | <%= t(".col_operation") %> | <%= t(".col_model") %> | <%= t(".col_tokens") %> | <%= t(".col_cost") %> |
|---|---|---|---|---|
| <%= usage.created_at.strftime("%b %d, %Y %I:%M %p") %> | <%= usage.operation.humanize %> | <%= usage.model %> |
<% if usage.failed? %>
<%= icon "alert-circle", class: "w-4 h-4 text-red-600 theme-dark:text-red-400" %>
<%= t(".failed") %>
|
<%= usage.formatted_cost %> |
<%= t(".no_usage_data") %>
<%= t(".cost_estimates_title") %>
<%= t(".cost_estimates_description") %>