Skip to content

GPT-3 generated forecasts using real-time weather data for your location

Notifications You must be signed in to change notification settings

kchaturvedi/gpt-weather

Repository files navigation

This is a Next.js app integrating WeatherAPI and GPT-3 to generate a simple weather forecast for your location.

Using Vercel Edge Functions, your IP address is used to derive your approximate location. This location is used to fetch the weather conditions. Finally, that information is fed into a prompt for GPT-3 to generate a friendly weather report.

Try it yourself

Add your API keys for WeatherAPI.com and OpenAI.com in a .env.local file.

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

About

GPT-3 generated forecasts using real-time weather data for your location

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published