Pārlūkot izejas kodu

Remove debug URL print from weather tool

Eliminated a print statement that was outputting the API request URL in the weather fetching tool, ensuring sensitive key information is not displayed in logs. This increases security by preventing potential API key exposure.
Kumi 1 gadu atpakaļ
vecāks
revīzija
3ee7505aa5
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. 0 1
      src/gptbot/tools/weather.py

+ 0 - 1
src/gptbot/tools/weather.py

@@ -32,7 +32,6 @@ class Weather(BaseTool):
             raise Exception('Weather API key not found.')
 
         url = f'https://api.openweathermap.org/data/3.0/onecall?lat={latitude}&lon={longitude}&appid={weather_api_key}&units=metric'
-        print(url)
 
         async with aiohttp.ClientSession() as session:
             async with session.get(url) as response: