refactor(docs): drop -free Google models from the model switcher - #911
Merged
Conversation
openui.com runs on the org's single shared Cloud quota, so exposing free-tier models (gemini-3.6-flash-free / 3.1-pro-free / 3.1-flash-lite-free / 3.5-flash-free) let visitors exhaust it (ERR_FREE_MODEL_LIMIT). Default is now google/gemini-3.6-flash and the /chat + /compare switchers list only paid models. The openui-cloud TEMPLATE keeps -free — scaffolded apps run on each user's own key/quota.
zahlekhan
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Remove every
-freeGoogle model from the docs model switcher and make the paid Gemini 3.6 Flash the default.docs/lib/openui-cloud/models.ts:DEFAULT_MODEL:google/gemini-3.6-flash-free→google/gemini-3.6-flashgemini-3.6-flash-free,gemini-3.1-pro-free,gemini-3.1-flash-lite-free,gemini-3.5-flash-freeApplies to both
/chatand/compare?pair=markdown-cloud(both read this file).Why
openui.com runs on the org's single shared Cloud quota. Exposing free-tier models in the public switcher let visitors exhaust it, surfacing
429 ERR_FREE_MODEL_LIMITmid-demo. Paid models bill against the org account instead of hitting the shared free cap.Not touched
The
openui-cloudtemplate keeps-freeas its default. Scaffolded apps run on each user's own key/quota, so the free tier is the right zero-cost starting point there.