Skip to content

Route funded AI through Gateway and retire legacy billing ingress - #1094

Merged
softmarshmallow merged 3 commits into
mainfrom
feat/gg-product-adoption
Oct 12, 2026
Merged

softmarshmallow merged 3 commits into
mainfrom
feat/gg-product-adoption

Conversation

@softmarshmallow

@softmarshmallow softmarshmallow commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Route Grida’s funded text, image, video and Tripo generation through Grida Gateway while preserving native API entry points, authorization, result DTOs and asset persistence. Retire the obsolete billing callback receivers, unused SDK and outdated provider setup instructions.

Draft for review; no merge or deployment.

  • Preserve organization credit accounting without duplicate native charges, original accepted job identity and download-failure behavior.
  • Retain native receipt recovery, signed Tripo upload preparation, contributor BYOK, Library embeddings and native Replicate features.
  • Return 404 for retired webhook paths; keep applied migrations, financial archives, customer billing pages and Forms payment fields unchanged.
  • Keep guidance focused on supported consumer contracts. Existing login-based CLI routes remain; standalone API-key CLI support is tracked in CLI: support standalone Grida AI Gateway with GG_API_KEY #1099.

Validation after cleanup: 470 focused consumer/AI tests, 856 API tests, 386 production-mode local HTTP cases and 19 focused proxy tests pass. TypeScript, lint, formatting, skill validation and the AI seam audit pass (2,331 files, zero violations). Suites overlap and use synthetic external providers; they do not establish hosted qualification. Earlier paired SDK tests cover actual local Gateway HTTP/PostgreSQL execution.

Review native compatibility, including video FPS rejection and provider-native text option limits, before release. Production activation and retained-delivery retirement require their separate release checks.

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
api Ready Ready Preview Oct 12, 2026 5:04pm UTC
blog Ready Ready Preview Oct 12, 2026 5:04pm UTC
docs Ready Ready Preview Oct 12, 2026 5:04pm UTC
grida Ready Ready Preview Oct 12, 2026 5:04pm UTC
viewer Ready Ready Preview Oct 12, 2026 5:04pm UTC
2 Skipped Deployments
Project Deployment Actions Updated
backgrounds Ignored Ignored Preview Oct 12, 2026 5:04pm UTC
code Ignored Ignored Oct 12, 2026 5:04pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d3965cc-164d-4076-8196-2e23dd4f904d

📥 Commits

Reviewing files that changed from the base of the PR and between 9ce562d and c82c990.


⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

📒 Files selected for processing (71)
  • .agents/skills/README.md
  • .agents/skills/ai-models/SKILL.md
  • .agents/skills/database/SKILL.md
  • .agents/skills/ee-billing/SKILL.md
  • .agents/skills/ee/SKILL.md
  • .agents/skills/gg/SKILL.md
  • .agents/skills/oss-standards/SKILL.md
  • .agents/skills/platform-consumers/SKILL.md
  • SECURITY.md
  • docs/contributing/billing.md
  • docs/wg/ai/agent/skills.md
  • docs/wg/platform/billing/ai-credits.md
  • docs/wg/platform/billing/index.md
  • docs/wg/platform/billing/known-issues.md
  • docs/wg/platform/billing/metronome.md
  • docs/wg/platform/billing/plans.md
  • docs/wg/platform/hosted-ai.md
  • editor/.env.example
  • editor/.oxlintrc.jsonc
  • editor/app/(api)/(public)/api/v1/ai/chat/completions/route.test.ts
  • editor/app/(api)/(public)/api/v1/ai/chat/completions/route.ts
  • editor/app/(api)/(public)/api/v1/ai/images/generations/route.test.ts
  • editor/app/(api)/(public)/api/v1/ai/images/generations/route.ts
  • editor/app/(api)/(public)/api/v1/ai/models/route.ts
  • editor/app/(api)/(public)/api/v1/ai/music/generations/route.ts
  • editor/app/(api)/(public)/api/v1/ai/videos/generations/route.ts
  • editor/app/(api)/(public)/api/v1/models/catalog/route.ts
  • editor/app/(ingest)/README.md
  • editor/app/(ingest)/webhooks/metronome/route.ts
  • editor/app/(ingest)/webhooks/stripe/route.ts
  • editor/app/(www)/(ai)/ai/_page.tsx
  • editor/app/(www)/(ai)/layout.tsx
  • editor/app/desktop/billing/summary/route.test.ts
  • editor/app/desktop/billing/summary/route.ts
  • editor/app/desktop/settings/_components/credits-section.tsx
  • editor/lib/ai/__tests__/error.test.ts
  • editor/lib/ai/__tests__/gateway-product.test.ts
  • editor/lib/ai/__tests__/generate-video.test.ts
  • editor/lib/ai/__tests__/gg-three-d-http.test.ts
  • editor/lib/ai/__tests__/gg-three-d.test.ts
  • editor/lib/ai/__tests__/server.test.ts
  • editor/lib/ai/actions/chat.ts
  • editor/lib/ai/actions/forms-schema.ts
  • editor/lib/ai/actions/image-generate.ts
  • editor/lib/ai/credits/controller.ts
  • editor/lib/ai/error.ts
  • editor/lib/ai/gateway-product.integration.ts
  • editor/lib/ai/gateway-product.ts
  • editor/lib/ai/gg-three-d-http.ts
  • editor/lib/ai/gg-three-d.ts
  • editor/lib/ai/image-cost.test.ts
  • editor/lib/ai/image-cost.ts
  • editor/lib/ai/models.ts
  • editor/lib/ai/openai-compat/errors.ts
  • editor/lib/ai/openai-compat/hosted-models.ts
  • editor/lib/ai/server.ts
  • editor/lib/api/README.md
  • editor/lib/api/proxy.test.ts
  • editor/lib/auth/index.tsx
  • editor/lib/billing/stripe-webhook-signature.ts
  • editor/lib/desktop/billing.ts
  • editor/lib/platform/README.md
  • editor/lib/platform/source-webhook-receiver.test.ts
  • editor/lib/platform/webhook-forwarding.test.ts
  • editor/lib/platform/webhook-forwarding.ts
  • editor/package.json
  • editor/proxy.ts
  • editor/scripts/audit-ai-seam.ts
  • editor/vitest.gateway.config.ts
  • editor/vitest.platform.config.ts
  • turbo.json

 _________________________
< No pants, fast results! >
 -------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@softmarshmallow softmarshmallow changed the title Route funded Grida AI execution through Gateway Route funded AI through Gateway and retire legacy billing ingress Oct 12, 2026
@softmarshmallow
softmarshmallow marked this pull request as ready for review October 12, 2026 17:09
@softmarshmallow
softmarshmallow merged commit 0ef0cdf into main Oct 12, 2026
32 checks passed

This branch was successfully deployed

5 active deployments
Preview – grida — c82c9905 Deployed Oct 12, 2026 by vercel[bot]
Preview – docs — c82c9905 Deployed Oct 12, 2026 by vercel[bot]
Preview – viewer — c82c9905 Deployed Oct 12, 2026 by vercel[bot]
Preview – blog — c82c9905 Deployed Oct 12, 2026 by vercel[bot]
Preview – api — c82c9905 Deployed Oct 12, 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