Skip to content

Commit 8f8e3b0

Browse files
feat: adds cache create and cache read tokens to conversation breakdown in Html Report
1 parent 2e1b381 commit 8f8e3b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/askui/reporting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,9 @@ def generate(self) -> None:
10101010
</span>
10111011
<span class="usage-breakdown-meta">
10121012
Input {{ "{:,}".format(conversation_usage.input_tokens or 0) }},
1013-
Output {{ "{:,}".format(conversation_usage.output_tokens or 0) }}
1013+
Output {{ "{:,}".format(conversation_usage.output_tokens or 0) }},
1014+
Cache Create {{ "{:,}".format(conversation_usage.cache_creation_input_tokens or 0) }},
1015+
Cache Read {{ "{:,}".format(conversation_usage.cache_read_input_tokens or 0) }}
10141016
{% if conversation_usage.total_cost is not none and conversation_usage.total_cost > 0 %}
10151017
, Cost:
10161018
${{ "%.6f"|format(conversation_usage.total_cost) }}

0 commit comments

Comments
 (0)