Skip to content

[Tool - Weather] Ask model to provide country code if location not found and country code is null#1006

Open
jinshen-cn wants to merge 4 commits intopatterns-ai-core:mainfrom
jinshen-cn:main
Open

[Tool - Weather] Ask model to provide country code if location not found and country code is null#1006
jinshen-cn wants to merge 4 commits intopatterns-ai-core:mainfrom
jinshen-cn:main

Conversation

@jinshen-cn
Copy link
Copy Markdown
Contributor

Some times if the country code is not provided, the openweathermap geocoding API will return empty.
for example:
Seattle,WA.
http://api.openweathermap.org/geo/1.0/direct?q=Seattle,WA&appId=<API_KEY>

Ask model to provide a country code and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant