From 36507a430668568be4c917781f433c2b0d4601ee Mon Sep 17 00:00:00 2001 From: "Saeed Misaghian (SaM)" <78544726+SaM-92@users.noreply.github.com> Date: Mon, 18 Mar 2024 12:48:08 +0000 Subject: [PATCH] Update prompt for fuel mix to fix energy system to electricity system --- subs/openai_script.py | 4 ++-- subs/telegram_func.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/subs/openai_script.py b/subs/openai_script.py index 7d27e25..778bb59 100644 --- a/subs/openai_script.py +++ b/subs/openai_script.py @@ -347,8 +347,8 @@ def create_fuel_mix_prompt(date, fuel_mix_data, net_import_status): f"📅 Date: {date}\n" f"🔋 Fuel Mix Data (MWh & Percentage):\n\n" f"{fuel_mix_details}\n\n" - "Based on the above data, write a short report about the status of the energy system over the last 24 hours. " - "Please summarize the contribution of each fuel source to the overall mix and any notable trends. " + "Based on the above data, write a short report about the status of the electricity system over the last 24 hours. " + "Please summarise the contribution of each fuel source to the overall mix and any notable trends. " "Use the following structure for your response, incorporating the specified emojis to highlight each fuel source:\n\n" "📋 Fuel Mix Status:\n" "- 🪨 Coal: [percentage]%\n" diff --git a/subs/telegram_func.py b/subs/telegram_func.py index 2ddd63c..d400667 100644 --- a/subs/telegram_func.py +++ b/subs/telegram_func.py @@ -326,4 +326,4 @@ async def telegram_wind_analysis(update, context, user_first_name): wind_demand_summary = wind_and_demand_report(prompt_for_wind_demand) plot_demand_vs_wind = area_plot_wind_demand(demand, wind) await send_plot_wind_demand(update, context, plot_demand_vs_wind) - # await update.message.reply_text(wind_demand_summary) + await update.message.reply_text(wind_demand_summary)