Update example_weather_tools.py

This commit is contained in:
ochafik 2024-03-29 16:24:59 +00:00
parent b63f91ade4
commit c340e8cd3b

View file

@ -3,7 +3,7 @@ import random
from typing import Literal
def _weather(w: str, temp, f):
def _weather(w: str, temp, format):
return f'{w}, {temp}C' if format == 'celsius' \
else f'{w}, {(temp * 9/5) + 32}F'