From ec7bdfa860da6ff95b1a20c0b6d4de3001457120 Mon Sep 17 00:00:00 2001 From: OrionCodeDev <47286873+OrionCodeDev@users.noreply.github.com> Date: Thu, 12 Feb 2026 04:01:25 +0100 Subject: [PATCH] fallback must exist or response tab will be empty --- .../view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx index d846a52ab35..d79610f5ef9 100644 --- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/LogDetailsDrawer.tsx @@ -84,10 +84,12 @@ export function LogDetailsDrawer({ if (!logEntry) return null; - // Use lazy-loaded details data directly + // Use lazy-loaded details if available, fall back to list endpoint data. + // The list endpoint may already include messages/response when store_prompts_in_spend_logs is enabled, + // while the detail endpoint fetches from custom loggers (S3, GCS, etc.). const detailsData = logDetails.data as any; - const effectiveMessages = detailsData?.messages; - const effectiveResponse = detailsData?.response; + const effectiveMessages = detailsData?.messages || logEntry.messages; + const effectiveResponse = detailsData?.response || logEntry.response; const isLoadingDetails = logDetails.isLoading; const metadata = logEntry.metadata || {};