diff --git a/ell-studio/src/components/invocations/InvocationsAnalyticsSidePanel.js b/ell-studio/src/components/invocations/InvocationsAnalyticsSidePanel.js index 377871e4..076db775 100644 --- a/ell-studio/src/components/invocations/InvocationsAnalyticsSidePanel.js +++ b/ell-studio/src/components/invocations/InvocationsAnalyticsSidePanel.js @@ -1,25 +1,21 @@ import React from 'react'; +import { FiZap, FiClock, FiHash, FiUsers, FiPercent, FiBox } from 'react-icons/fi'; import SidePanel from '../common/SidePanel'; import StatItem from '../common/StatItem'; import MetricCard from '../common/MetricCard'; -import { FiZap, FiClock, FiHash, FiUsers, FiPercent, FiBox } from 'react-icons/fi'; const InvocationsAnalyticsSidePanel = ({ aggregateData, sidebarMetrics }) => { - if (!aggregateData) return null; - - const statsData = [ - { icon: FiZap, label: "Total Invocations", value: aggregateData.total_invocations }, - { icon: FiClock, label: "Avg Latency", value: `${aggregateData.avg_latency.toFixed(2)}ms` }, - { icon: FiHash, label: "Total Tokens", value: aggregateData.total_tokens }, - { icon: FiUsers, label: "Unique LMPs", value: aggregateData.unique_lmps }, - ]; + if (!aggregateData || !sidebarMetrics) return null; return ( -
- {statsData.map((stat, index) => ( - - ))} +
+ + + + + +
{ yAxisLabel="Tokens" /> -
-

Top 5 LMPs

+
+

Top 5 LMPs

    {sidebarMetrics.topLMPs.map(([lmp, count], index) => (
  • - - {index + 1}. + + {index + 1}. {lmp} - {count} invocations + {count} invocations
  • ))}
- -
-

Additional Metrics

- - -
); };