aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-05-18 09:51:30 +0000
committersigoden <sigoden@gmail.com>2024-05-18 09:52:07 +0000
commit2bcd04ec047519f490350a0bf08e425d6abe7564 (patch)
tree4c3989db5bb150c1ac484c7a59e4205807f94168
parent1ca118a301039fb355aa402b8ba4ff18ad85ede8 (diff)
downloadllm-functions-docker-2bcd04ec047519f490350a0bf08e425d6abe7564.tar.gz
refactor: adjust --location description as certain LLMs insist on a province
-rwxr-xr-xbin/get_current_weather4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/get_current_weather b/bin/get_current_weather
index ad45c5f..47102e0 100755
--- a/bin/get_current_weather
+++ b/bin/get_current_weather
@@ -2,10 +2,10 @@
set -e
# @describe Get the current weather in a given location.
-# @option --location! The city and state, e.g. San Francisco, CA
+# @option --location! The city and optionally the state or country, e.g., "London", "San Francisco, CA".
main() {
- curl "https://wttr.in/$(echo "$argc_location" | sed 's/ /+/g')?format=4&M"
+ curl -fsSL "https://wttr.in/$(echo "$argc_location" | sed 's/ /+/g')?format=4&M"
}
eval "$(argc --argc-eval "$0" "$@")"