feat(tiers): gate LLM calls at Free tier; route Paid+ through public cf-orch #140
Labels
No labels
accessibility
backlog
beta-feedback
bug
duplicate
enhancement
feature-request
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#140
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Request
Tier gate the LLM-dependent recipe features:
Free users should see a clear "Bring Your Own Key" upsell when they hit an LLM-gated feature — not a silent error.
Paid+ users route through
CF_ORCH_URLpointing at the public cf-orch coordinator (orch.circuitforge.tech), which manages GPU allocation across the hosted fleet. This is distinct from the local rack coordinator (10.1.10.71:7700) used in dev.Implementation notes
app/tiers.pyalready hascan_use()andrequire_tier()— extend with acan_use_llm()check_call_vision_backend()inrecipe_scanner.py: Free tier should skip the cf-orch path and raise a BYOK-specific error that the endpoint surfaces as a friendly messageLLMRouterin cf-core already gates onDEMO_MODE— a similarFREE_TIER_MODEenv var may be the cleanest toggleCF_ORCH_URLshould point tohttps://orch.circuitforge.techfor Paid+ users (currently points to local rack)References
app/tiers.pyapp/services/recipe/recipe_scanner.py—_call_vision_backend()app/api/endpoints/recipe_scan.py— error surfacingcircuitforge_core/llm/router.py—DEMO_MODEgate as reference pattern