From d2ca1926f86e961f792bd1d926c7831cfd6fbd31 Mon Sep 17 00:00:00 2001 From: Alvis Date: Fri, 13 Mar 2026 06:25:53 +0000 Subject: [PATCH] WeatherTool: use Russian query for Celsius sources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'погода Балашиха сейчас' returns Russian weather sites (gismeteo, meteotrend) that report in °C, vs English queries which return Fahrenheit snippets that the model misreads as Celsius. Co-Authored-By: Claude Opus 4.6 --- fast_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fast_tools.py b/fast_tools.py index a31d091..fb951d1 100644 --- a/fast_tools.py +++ b/fast_tools.py @@ -52,7 +52,7 @@ class WeatherTool(FastTool): ) # Fixed query — always fetch home location weather - _SEARCH_QUERY = "weather Balashikha Moscow now" + _SEARCH_QUERY = "погода Балашиха сейчас" # Russian query → Celsius sources def __init__(self, searxng_url: str): self._searxng_url = searxng_url @@ -81,7 +81,7 @@ class WeatherTool(FastTool): return "" # Prefer results whose snippets contain actual current conditions - lines = ["Current weather data for Balashikha, Moscow region:\n"] + lines = ["Current weather data for Balashikha, Moscow region (temperatures in °C):\n"] for item in items: snippet = item.get("content", "") title = item.get("title", "")