Skip to content

Make Free analysis use Flash-Lite and verify all plan responses - #9

Merged
shashank03-dev merged 3 commits into
mainfrom
fix/plan-analysis
Nov 6, 2026
Merged

shashank03-dev merged 3 commits into
mainfrom
fix/plan-analysis

Conversation

@shashank03-dev

@shashank03-dev shashank03-dev commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Free analysis used an overloaded latest Flash model, and real image tests exposed malformed JSON. A deployment-key check also caught that legacy Flash-Lite is unavailable to newer keys.

Free now uses gemini-3.5-flash-lite, with a configurable lightweight backup on temporary failures or model retirement. Pro/Team retain their primary model and fall back to the working Flash-Lite model when access/quota is unavailable. Gemini responses use an explicit JSON schema shared with OpenAI; generated snippets are kept concise. Requests reserve time for fallback, with aligned browser deadlines (Free: 75s model/90s browser; paid: 90s model/105s browser).

Adds live image-analysis tests for all three plans through the real route handler. Tests require HTTP 200 and nonempty CSS, GSAP, Framer Motion, and React Spring output. Auth and usage adapters are isolated; these are provider/handler integration tests, not real customer login or checkout tests. An opt-in postbuild gate repeats them inside Vercel with the deployment's own provider key. vercel.json explicitly runs npm run build so this check cannot be skipped by the framework's default next build command.

Corrects the particle performance test to measure actual WebGL draws for the field instead of unrelated page animation frames. Adds frame-limit tests for every plan and Free failure → retry → success → daily-limit coverage.

Validation:

  • 316 default tests pass; TypeScript, ESLint, and diff checks pass locally.
  • Vercel preview dpl_HfwQD5H4NXyLZ2EowrpPq4wrjWkJ is READY and its live provider gate passed all three plans in 6.8s total. Pro/Team use fallback because the primary's provider free-tier quota is zero.
  • GitHub quality check passed: 302 multi-browser E2E tests passed, 6 environment skips; build and dependency audit passed.
  • Production dpl_GwFaqVj3NUnLJ13rVcGKGpXQME34 is READY on motioncode.live. Its real-key live checks returned HTTP 200 for Free (2.126s), Pro (2.482s), and Team (1.920s), with all four code formats present. Paid plans currently use Flash-Lite fallback because the Pro provider quota is zero.
  • The temporary live-check environment flag was disabled after this release to avoid additional provider calls on routine builds.
  • A specific stale Free reservation with no completed usage was reclassified as failed in production, restoring that allowance.

Local browser startup is blocked by runtime limitations; browser results come from GitHub CI.

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
motion-code Ready Ready Preview Nov 6, 2026 8:38am UTC

@shashank03-dev
shashank03-dev merged commit 98b3b8e into main Nov 6, 2026
3 checks passed

This branch was successfully deployed

2 active deployments
Production — 98b3b8ea Deployed Nov 6, 2026 by vercel[bot]
Preview — 98b3b8ea Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant