This is an example of a Next.js application that demonstrates the usage of the Data Stream Protocol to stream chat completions from a Next.js API route (Next.js) along with theuseChat hook on the client to create a seamless chat experience. on the client to create a seamless chat experience.

You can learn more about the AI SDK by visiting the docs.