Vercel AI SDK's Google Vertex template using Next
This example shows how to use the AI SDK with Next.js and Google Vertex AI to validate that the AI SDK's Google Vertex provider can run successfully in the Edge runtime.
Deploy the example using Vercel:
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example https://github.com/vercel/ai/tree/main/examples/next-google-vertex-edge next-vertex-edge-app
To run the example locally you need to:
.env.local.examplepnpm install to install the required dependenciespnpm dev to launch the development serverTo learn more about Google Vertex AI, Next.js, and the AI SDK take a look at the following resources: