Skip to main content

Vercel Flags now supports JSON values

By Steven Van ·

A single Vercel Flags entry can now hold a JSON object, replacing sets of related flags like model, temperature, and max tokens.

Vercel Flags now supports JSON values, extending the existing support for booleans, strings, and numbers. That lets several related flags collapse into one: an A/B test that used to need separate ai_model, ai_temperature, and ai_max_tokens flags can now be a single flag whose variants each hold a full JSON object, for example a model id, temperature, max tokens, and system prompt together.

Vercel points to this for progressively routing traffic to a new model, running A/B tests between model configurations, or switching models quickly if a provider has issues.

Vercel
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →

Read the original announcement →

Read Vercel Flags now supports JSON values on Creators Toolbox