fixed storage error

This commit is contained in:
belviskhoremk
2026-05-27 23:17:34 +00:00
parent a10c95d8dd
commit fad2b3a9f3
9 changed files with 141 additions and 102 deletions

View File

@@ -100,23 +100,17 @@ MODEL_CATALOG = {
"badge": "Smart",
"description": "Cost-effective and highly capable model",
},
"accounts/fireworks/models/deepseek-v3p2": {
"name": "DeepSeek V3.2",
"provider": "Fireworks AI",
"badge": "Smart",
"description": "Latest DeepSeek — faster and more capable",
},
"accounts/fireworks/models/kimi-k2-instruct": {
"accounts/fireworks/models/kimi-k2-instruct-0905": {
"name": "Kimi K2",
"provider": "Fireworks AI",
"badge": "Multilingual",
"description": "Strong multilingual and coding capabilities",
},
"accounts/fireworks/models/kimi-k2p5-instruct": {
"name": "Kimi K2.5",
"accounts/fireworks/models/gpt-oss-120b": {
"name": "GPT OSS 120B",
"provider": "Fireworks AI",
"badge": "Multilingual",
"description": "Upgraded Kimi — stronger reasoning and multilingual",
"badge": "Powerful",
"description": "Large open-source model with strong reasoning",
},
# ── Pro tier (Premium providers) ───────────────────────────────────────────
@@ -169,9 +163,8 @@ MODEL_PROVIDERS = {
"accounts/fireworks/models/llama-v3p3-70b-instruct": "fireworks",
"accounts/fireworks/models/qwen3-235b-a22b": "fireworks",
"accounts/fireworks/models/deepseek-v3p1": "fireworks",
"accounts/fireworks/models/deepseek-v3p2": "fireworks",
"accounts/fireworks/models/kimi-k2-instruct": "fireworks",
"accounts/fireworks/models/kimi-k2p5-instruct": "fireworks",
"accounts/fireworks/models/kimi-k2-instruct-0905": "fireworks",
"accounts/fireworks/models/gpt-oss-120b": "fireworks",
# OpenAI
"gpt-4o": "openai",
"gpt-4o-mini": "openai",
@@ -224,9 +217,8 @@ _ALL_FIREWORKS = [
"accounts/fireworks/models/llama-v3p3-70b-instruct",
"accounts/fireworks/models/qwen3-235b-a22b",
"accounts/fireworks/models/deepseek-v3p1",
"accounts/fireworks/models/deepseek-v3p2",
"accounts/fireworks/models/kimi-k2-instruct",
"accounts/fireworks/models/kimi-k2p5-instruct",
"accounts/fireworks/models/kimi-k2-instruct-0905",
"accounts/fireworks/models/gpt-oss-120b",
]
_ALL_PREMIUM = [
"gpt-4o", "gpt-4o-mini",
@@ -236,23 +228,23 @@ _ALL_PREMIUM = [
PLAN_LIMITS = {
# ── Free ─────────────────────────────────────────────────────────────────
# Build, test, and go live with one chatbot — no card needed.
# Generous enough to validate the product, limited enough to drive upgrades.
"free": {
"max_chatbots": 999999,
"max_published": 1, # can publish 1 chatbot
"max_documents_per_chatbot": 3,
"max_published": 1,
"max_documents_per_chatbot": 5,
"max_document_size_mb": 5,
"models": ["accounts/fireworks/models/llama-v3p3-70b-instruct"],
"conversations_limit": 100, # 100 real conversations/month
"conversations_limit": 300,
"code_export": False,
"analytics": False,
"gap_suggestions": False,
"channels": [], # no messaging channels
"url_sources": 0,
"channels": [],
"url_sources": 2,
"leads_per_month": 0,
"inbox_replies": False, # read-only inbox
"leads_editing": False, # view-only leads
"show_branding": True, # cannot remove badge
"inbox_replies": False,
"leads_editing": False,
"show_branding": True,
"appointments": False,
"appointments_chatbots": 0,
"campaigns": False,
@@ -260,38 +252,38 @@ PLAN_LIMITS = {
"max_campaign_recipients": 0,
},
# ── Starter $19/mo ───────────────────────────────────────────────────────
# For solo operators: live chat, leads, booking, and campaigns.
# Complete package for individuals and small businesses.
"starter": {
"max_chatbots": 999999,
"max_published": 3,
"max_documents_per_chatbot": 10,
"max_document_size_mb": 10,
"max_documents_per_chatbot": 20,
"max_document_size_mb": 20,
"models": _ALL_FIREWORKS,
"conversations_limit": 1500,
"conversations_limit": 2000,
"code_export": False,
"analytics": True,
"gap_suggestions": False,
"channels": ["telegram"],
"url_sources": 5,
"leads_per_month": 500,
"url_sources": 10,
"leads_per_month": 999999,
"inbox_replies": True,
"leads_editing": True,
"show_branding": True, # badge stays on Starter
"show_branding": False, # branding removal starts at Starter
"appointments": True,
"appointments_chatbots": 1, # booking on 1 chatbot
"appointments_chatbots": 3,
"campaigns": True,
"campaigns_per_month": 3,
"max_campaign_recipients": 500,
"campaigns_per_month": 5,
"max_campaign_recipients": 1000,
},
# ── Business $49/mo ──────────────────────────────────────────────────────
# For growing businesses: premium AI, unlimited booking, full analytics.
# Same features as Starter + premium AI models and serious scale.
"business": {
"max_chatbots": 999999,
"max_published": 10,
"max_documents_per_chatbot": 50,
"max_document_size_mb": 50,
"max_documents_per_chatbot": 100,
"max_document_size_mb": 100,
"models": _ALL_FIREWORKS + _ALL_PREMIUM,
"conversations_limit": 5000,
"conversations_limit": 8000,
"code_export": False,
"analytics": True,
"gap_suggestions": True,
@@ -300,7 +292,7 @@ PLAN_LIMITS = {
"leads_per_month": 999999,
"inbox_replies": True,
"leads_editing": True,
"show_branding": False, # can remove badge
"show_branding": False,
"appointments": True,
"appointments_chatbots": 999999,
"campaigns": True,
@@ -308,18 +300,18 @@ PLAN_LIMITS = {
"max_campaign_recipients": 5000,
},
# ── Agency $99/mo ────────────────────────────────────────────────────────
# For agencies: unlimited everything, unlimited campaign recipients.
# For heavy users and agencies. Reserved tier for WhatsApp and future channels.
"agency": {
"max_chatbots": 999999,
"max_published": 999999,
"max_documents_per_chatbot": 999999,
"max_document_size_mb": 200,
"max_document_size_mb": 500,
"models": _ALL_FIREWORKS + _ALL_PREMIUM,
"conversations_limit": 20000,
"conversations_limit": 25000,
"code_export": True,
"analytics": True,
"gap_suggestions": True,
"channels": ["telegram"],
"channels": ["telegram"], # whatsapp added here when ready
"url_sources": 999999,
"leads_per_month": 999999,
"inbox_replies": True,