Building an LLM Router with mdx-prompt and NextJS
LLM Routers are a pivotal pattern in AI apps. They enable us to use one LLM to delegate to another, allowing us to create one prompt that's great at deciding what to do (the router), and a set of other prompts that are optimized for doing the actual operation the user wants. This separation allows us to more easily scale and test our AI applications, and this article shows how to build one with mdx-prompt and NextJS.