diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 455197d6..543ce47b 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -68,14 +68,22 @@ export default function App() { (sum, p) => sum + p.total_cost, 0, ); + const energySaved = data.per_provider.reduce( + (sum, p) => sum + (p.energy_wh || 0), + 0, + ); + const flopsSaved = data.per_provider.reduce( + (sum, p) => sum + (p.flops || 0), + 0, + ); submitSavings({ anon_id: optInAnonId, display_name: optInDisplayName, total_calls: data.total_calls, total_tokens: data.total_tokens, dollar_savings: dollarSavings, - energy_wh_saved: 0, - flops_saved: 0, + energy_wh_saved: energySaved, + flops_saved: flopsSaved, }); } }) diff --git a/frontend/src/pages/GetStartedPage.tsx b/frontend/src/pages/GetStartedPage.tsx index 624dae8e..c4b4cb3a 100644 --- a/frontend/src/pages/GetStartedPage.tsx +++ b/frontend/src/pages/GetStartedPage.tsx @@ -406,18 +406,18 @@ function SelfHostedView() {
Clone and install (Python 3.10+ required):
-Then get started:
-Launch the API server to get the full UI in your browser:
-The chat, dashboard, energy profiling, and cost comparison all run locally on your machine. @@ -428,7 +428,7 @@ function SelfHostedView() {
Deploy with Docker Compose for a zero-setup hosted instance:
-This starts both the API server and Ollama. The web UI is bundled and served automatically at port 8000.