Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

feat(ui/log-details): pass rawInputTokens, cacheReadTokens, cacheCreationTokens to CostBreakdownViewer from SpendLogs

Ishaan Jaffere0a988e39afa
diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx
index 75618076079..0502abb3450 100644
--- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx
+++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailContent.tsx
@@ -142,6 +142,9 @@ export function LogDetailContent({ logEntry, onOpenSettings, isLoadingDetails =
promptTokens={logEntry.prompt_tokens}
completionTokens={logEntry.completion_tokens}
cacheHit={logEntry.cache_hit}
+ rawInputTokens={metadata?.additional_usage_values?.prompt_tokens_details?.text_tokens}
+ cacheReadTokens={metadata?.additional_usage_values?.cache_read_input_tokens}
+ cacheCreationTokens={metadata?.additional_usage_values?.cache_creation_input_tokens}
/>
{/* Tools */}