Repository navigation
feat: add a Flash / Pro model picker to the prompt composer - #176
Merged
Merged
Conversation
A picker beside Effort chooses the model for cloud generations and sends it as `model: "flash" | "pro"`. Flash is for everyone. Pro is the paid plans' model: subscribers start on it and can switch to Flash, and losing the plan puts them back on Flash. For a free user Pro is faded with a lock, reads "Upgrade to unlock", and opens the pricing page instead of being selected. The editor never names the model behind Pro; the backend's PRO_AI_MODEL does, so it can change without an editor release. Local projects show no picker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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 this does
Adds a Flash / Pro model picker beside Effort in the prompt composer (
TiffyPanel). The choice is sent with every cloud generation asmodel: "flash" | "pro".AI_MODELfor Flash,PRO_AI_MODELfor Pro), so the model behind Pro can change without an editor release.Needs the backend
COPPSARY/Motify-Backend#69 adds
modelto the message API (the pro key itself shipped in #68). An older backend rejects an unknownmodelfield, so deploy #69 before this.Tests
tsc --noEmitis clean, andsvelte-checkreports 0 errors and 0 warnings.TiffyPanel,src/aiandsrc/cloudpass 65 of 65 tests. The 3 new composer tests cover:I haven't looked at the picker in a browser.
🤖 Generated with Claude Code