
Vercel Flags now supports JSON values
Quick Answer
Vercel Flags now supports JSON values, allowing users to consolidate multiple related flags into a single feature flag.
Quick Take
Vercel Flags now supports JSON values, allowing users to consolidate multiple related flags into a single feature flag. This enhancement simplifies A/B testing and model management, enabling efficient traffic routing and quick model switching.
Key Points
- Users can now store JSON values alongside booleans, strings, and numbers.
- This feature allows for a single flag to manage related configurations.
- Ideal for A/B testing model performance with one consolidated flag.
- Enables progressive traffic routing to new models or quick model switches.
- Simplifies management by reducing the number of flags needed.
Article Excerpt
From source RSS / original summaryYou can now store JSON values in, extending the existing support for boolean, string, and number values. This allows you to collapse what used to take several related flags into a single feature flag. Vercel FlagsFor example, to A/B test how a different model performs, you can now define a single flag.
This allows you to manage one flag that serves the full object rather than managing,, and separately:modelai_modelai_temperatureai_max_tokensUse Vercel Flags to progressively route traffic to a new model, A/B test, or quickly switch models in case a provider is having issues. or learn more about. Try it outVercel FlagsRead more
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

