There are dozens of different free weather APIs which could be called directly.
There are dozens of different free weather APIs which could be called directly.
- Turn a colloquial name for a neighborhood into the exact latitude and longitude (I'm sure there's some API that can kind of do this but I don't know a free one that is as accurate as GPT)
- Adding to the previous point, if you say "Hogwarts" or "Tatooine" it will dutifully give you the weather of those too thanks to AI [1]
- Most importantly, write a Dall-E compatible prompt to generate an image with the actual weather conditions (and sun/moon etc)
From your second point, I'd have expected that to fail for Hogwarts or Tatooine.
Taken together, it sounds like you're blindly trusting the coordinates generated by AI, and will happily generate correct-looking results for any input. I'd call that hallucinating the weather. If I type in "Springfield" I'm gonna get results but I'm not gonna know if they're mine.
This may be an unreasonable level of concern for a fun app.
Yeah the second part I consider a bonus. Especially because I can use street names or slang for locations that no rigid API supports.
> Taken together, it sounds like you're blindly trusting the coordinates generated by AI
Actually I guess I do "blindly" trust the AI's coordinates more than a traditional location search service. Not sure how much you've tested it yourself, but I haven't gotten a single false latitude/longitude pair from GPT-4 unless the location was truly ambiguous, in which case it would be one of them. But as a European, I've definitely experienced rigid APIs happily giving me the weather for "Stockholm, NY" which apparently does exist, but wouldn't have been my first option...
But yeah, it is just a fun app, so I wouldn't want to make it more rigid either way!
Again, probably overboard for a fun app!
- Springfield in Illinois
- Sandwich in Massachusetts (the exact coords: https://www.google.com/maps/place/41%C2%B045'31.0%22N+70%C2%...)
I think that people underestimate how much non-AI technology fails in these cases. And the recovery path is to retry with more specificity in either case.
That's an excellent point!
Just browsed through your code and I see that you're calculating the positions of the sun and moon. Very cool! Really fun project!
I'm trying to understand the criticism here, so please give the GPT a shot with a few different locations (you can also do neighborhoods or fictional locations) and describe how this is a nut that can be cracked with non-LLM solutions:
I think people are just questioning the assumption that such a feature is a desirable or necessary feature of a weather display.
I definitely was a bit surprised to open the repo to a weather display and see the need for an OpenAI key without an explanation of which features were AI-powered.
But of course this is a personal project, so "Generate a representative AI image using the location and weather information" is a perfectly valid, and cool, challenge to set yourself and achieve.