From 50c45399bd1a79179fbe37bc01248e5c8003c819 Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Tue, 24 Feb 2026 19:08:37 +0100 Subject: [PATCH] fix inesco and sodistore home naming and remove Mistral AI info --- csharp/App/Backend/Services/ReportEmailService.cs | 8 ++++---- csharp/App/Backend/Services/WeeklyReportService.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/csharp/App/Backend/Services/ReportEmailService.cs b/csharp/App/Backend/Services/ReportEmailService.cs index ce9e05292..230f7c365 100644 --- a/csharp/App/Backend/Services/ReportEmailService.cs +++ b/csharp/App/Backend/Services/ReportEmailService.cs @@ -113,7 +113,7 @@ public static class ReportEmailService GridIn: "Netz Ein", GridOut: "Netz Aus", BattInOut: "Batt. Laden/Entl.", - Footer: "Erstellt von Inesco Energy Monitor Platform · Powered by Mistral AI" + Footer: "Erstellt von inesco Energy Monitor" ), "fr" => new EmailStrings( Title: "Rapport de performance hebdomadaire", @@ -143,7 +143,7 @@ public static class ReportEmailService GridIn: "Réseau Ent.", GridOut: "Réseau Sor.", BattInOut: "Batt. Ch./Déch.", - Footer: "Généré par Inesco Energy Monitor Platform · Propulsé par Mistral AI" + Footer: "Généré par inesco Energy Monitor" ), "it" => new EmailStrings( Title: "Rapporto settimanale delle prestazioni", @@ -173,7 +173,7 @@ public static class ReportEmailService GridIn: "Rete Ent.", GridOut: "Rete Usc.", BattInOut: "Batt. Car./Sc.", - Footer: "Generato da Inesco Energy Monitor Platform · Powered by Mistral AI" + Footer: "Generato da inesco Energy Monitor" ), _ => new EmailStrings( Title: "Weekly Performance Report", @@ -203,7 +203,7 @@ public static class ReportEmailService GridIn: "Grid In", GridOut: "Grid Out", BattInOut: "Batt. Ch./Dis.", - Footer: "Generated by Inesco Energy Monitor Platform · Powered by Mistral AI" + Footer: "Generated by inesco Energy Monitor" ) }; diff --git a/csharp/App/Backend/Services/WeeklyReportService.cs b/csharp/App/Backend/Services/WeeklyReportService.cs index 28d5377dc..9c9e4a3a9 100644 --- a/csharp/App/Backend/Services/WeeklyReportService.cs +++ b/csharp/App/Backend/Services/WeeklyReportService.cs @@ -256,7 +256,7 @@ public static class WeeklyReportService var battBehaviorLine = !string.IsNullOrEmpty(battDepleteLine) ? $"- {battDepleteLine}" : ""; // Build conditional instructions - var instruction1 = $"1. Energy savings: Write 1–2 sentences. Say that this week, thanks to SodistoreHome, the customer avoided buying {totalEnergySaved} kWh from the grid, saving {totalSavingsCHF} CHF (at {ElectricityPriceCHF} CHF/kWh). Use these exact numbers — do not recalculate or change them."; + var instruction1 = $"1. Energy savings: Write 1–2 sentences. Say that this week, thanks to sodistore home, the customer avoided buying {totalEnergySaved} kWh from the grid, saving {totalSavingsCHF} CHF (at {ElectricityPriceCHF} CHF/kWh). Use these exact numbers — do not recalculate or change them."; var instruction2 = hasPv ? $"2. Solar performance: Comment on the best and worst solar day this week and the likely weather reason." @@ -274,7 +274,7 @@ public static class WeeklyReportService ? $"4. Smart action for next week: Write exactly 2 sentences. Sentence 1: state that the peak grid-import hour is {FormatHourSlot(behavior.HighestGridImportHour)} ({behavior.AvgGridImportAtPeakHour} kWh avg). Sentence 2: suggest one action to reduce grid use during that hour — shifting energy-intensive appliances (washing machine, dishwasher, heat pump, EV charger) away from that time." : "4. Smart action for next week: Give one practical tip to reduce energy consumption based on the peak load time and weekday/weekend pattern."; - var prompt = $@"You are an energy advisor for a SodistoreHome installation: ""{installationName}"". + var prompt = $@"You are an energy advisor for a sodistore home installation: ""{installationName}"". Write 4 bullet points (each on its own line starting with ""- ""). No bold markers, no asterisks, no markdown — plain text only.