This Next.js chatbot (source) uses the Vercel AI SDK's Model Registry feature in combination with Feature Flags and Edge Config to dynamically change the model the chatbot is using.
To use this demo, you must deploy the template as it uses the Vercel toolbar to toggle the model_id Feature Flag.