diff --git a/apps/docs/content/docs/en/execution/costs.mdx b/apps/docs/content/docs/en/execution/costs.mdx index 8ba43616d89..b32530febe6 100644 --- a/apps/docs/content/docs/en/execution/costs.mdx +++ b/apps/docs/content/docs/en/execution/costs.mdx @@ -367,12 +367,12 @@ Sim uses a **base subscription + overage** billing model: ### Threshold Billing -When on-demand is enabled and unbilled overage reaches $50, Sim automatically bills the full unbilled amount. +When on-demand is enabled and unbilled overage reaches $100, Sim automatically bills the full unbilled amount. **Example:** -- Day 10: $70 overage → Bill $70 immediately -- Day 15: Additional $35 usage ($105 total) → Already billed, no action -- Day 20: Another $50 usage ($155 total, $85 unbilled) → Bill $85 immediately +- Day 10: $120 overage → Bill $120 immediately +- Day 15: Additional $60 usage ($180 total) → Already billed, no action +- Day 20: Another $80 usage ($260 total, $140 unbilled) → Bill $140 immediately This spreads large overage charges throughout the month instead of one large bill at period end. @@ -480,5 +480,5 @@ import { FAQ } from '@/components/ui/faq' { question: "What happens when I exceed my plan's credit limit?", answer: "By default, your usage is capped at your plan's included credits and runs will stop. If you enable on-demand billing or manually raise your usage limit in Settings, you can continue running workflows and pay for the overage at the end of the billing period." }, { question: "How does the 1.1x hosted model multiplier work?", answer: "When you use Sim's hosted API keys (instead of bringing your own), a 1.1x multiplier is applied to the base model pricing for Agent blocks. This covers infrastructure and API management costs. You can avoid this multiplier by using your own API keys via the BYOK feature." }, { question: "Are there any free options for AI models?", answer: "Yes. If you run local models through Ollama or VLLM, there are no API costs for those model calls. You still pay the base run charge of 1 credit per run." }, - { question: "When does threshold billing trigger?", answer: "When on-demand billing is enabled and your unbilled overage reaches $50, Sim automatically bills the full unbilled amount. This spreads large charges throughout the month instead of accumulating one large bill at period end." }, + { question: "When does threshold billing trigger?", answer: "When on-demand billing is enabled and your unbilled overage reaches $100, Sim automatically bills the full unbilled amount. This spreads large charges throughout the month instead of accumulating one large bill at period end." }, ]} /> diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx index 9709beba0c5..8e64e1203fc 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx @@ -157,7 +157,7 @@ function parseBlocks(blocks: ContentBlock[]): MessageSegment[] { } if (block.type === 'text') { - if (!block.content?.trim()) continue + if (!block.content) continue if (block.subagent) { if (group && group.agentName === block.subagent) { group.isDelegating = false diff --git a/apps/sim/lib/billing/constants.ts b/apps/sim/lib/billing/constants.ts index 1838e7da1e5..d9a3c391540 100644 --- a/apps/sim/lib/billing/constants.ts +++ b/apps/sim/lib/billing/constants.ts @@ -32,7 +32,7 @@ export const SEARCH_TOOL_COST = 0.01 * Default threshold (in dollars) for incremental overage billing * When unbilled overage reaches this amount, an invoice item is created */ -export const DEFAULT_OVERAGE_THRESHOLD = 50 +export const DEFAULT_OVERAGE_THRESHOLD = 100 /** * Available credit tiers. Each tier maps a credit amount to the underlying dollar cost. diff --git a/apps/sim/lib/core/config/env.ts b/apps/sim/lib/core/config/env.ts index 2c7ef8bb691..14dd665ecdb 100644 --- a/apps/sim/lib/core/config/env.ts +++ b/apps/sim/lib/core/config/env.ts @@ -72,7 +72,7 @@ export const env = createEnv({ STRIPE_PRICE_TEAM_25_YR: z.string().min(1).optional(), // Team Pro: $255/seat/yr STRIPE_PRICE_TEAM_100_MO: z.string().min(1).optional(), // Team Max: $100/seat/mo STRIPE_PRICE_TEAM_100_YR: z.string().min(1).optional(), // Team Max: $1,020/seat/yr - OVERAGE_THRESHOLD_DOLLARS: z.number().optional().default(50), // Dollar threshold for incremental overage billing (default: $50) + OVERAGE_THRESHOLD_DOLLARS: z.number().optional().default(100), // Dollar threshold for incremental overage billing (default: $100) // Email & Communication EMAIL_VERIFICATION_ENABLED: z.boolean().optional(), // Enable email verification for user registration and login (defaults to false)