Skip to content

Commit a589c8e

Browse files
improvement(mothership): whitespace only deltas need to be preserved, update docs for theshold billing (#4212)
* fix(mothership): content block spaces trimmed * update overage threshold docs
1 parent 3d909d5 commit a589c8e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

apps/docs/content/docs/en/execution/costs.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ Sim uses a **base subscription + overage** billing model:
367367

368368
### Threshold Billing
369369

370-
When on-demand is enabled and unbilled overage reaches $50, Sim automatically bills the full unbilled amount.
370+
When on-demand is enabled and unbilled overage reaches $100, Sim automatically bills the full unbilled amount.
371371

372372
**Example:**
373-
- Day 10: $70 overage → Bill $70 immediately
374-
- Day 15: Additional $35 usage ($105 total) → Already billed, no action
375-
- Day 20: Another $50 usage ($155 total, $85 unbilled) → Bill $85 immediately
373+
- Day 10: $120 overage → Bill $120 immediately
374+
- Day 15: Additional $60 usage ($180 total) → Already billed, no action
375+
- Day 20: Another $80 usage ($260 total, $140 unbilled) → Bill $140 immediately
376376

377377
This spreads large overage charges throughout the month instead of one large bill at period end.
378378

@@ -480,5 +480,5 @@ import { FAQ } from '@/components/ui/faq'
480480
{ 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." },
481481
{ 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." },
482482
{ 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." },
483-
{ 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." },
483+
{ 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." },
484484
]} />

apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function parseBlocks(blocks: ContentBlock[]): MessageSegment[] {
157157
}
158158

159159
if (block.type === 'text') {
160-
if (!block.content?.trim()) continue
160+
if (!block.content) continue
161161
if (block.subagent) {
162162
if (group && group.agentName === block.subagent) {
163163
group.isDelegating = false

apps/sim/lib/billing/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const SEARCH_TOOL_COST = 0.01
3232
* Default threshold (in dollars) for incremental overage billing
3333
* When unbilled overage reaches this amount, an invoice item is created
3434
*/
35-
export const DEFAULT_OVERAGE_THRESHOLD = 50
35+
export const DEFAULT_OVERAGE_THRESHOLD = 100
3636

3737
/**
3838
* Available credit tiers. Each tier maps a credit amount to the underlying dollar cost.

apps/sim/lib/core/config/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const env = createEnv({
7272
STRIPE_PRICE_TEAM_25_YR: z.string().min(1).optional(), // Team Pro: $255/seat/yr
7373
STRIPE_PRICE_TEAM_100_MO: z.string().min(1).optional(), // Team Max: $100/seat/mo
7474
STRIPE_PRICE_TEAM_100_YR: z.string().min(1).optional(), // Team Max: $1,020/seat/yr
75-
OVERAGE_THRESHOLD_DOLLARS: z.number().optional().default(50), // Dollar threshold for incremental overage billing (default: $50)
75+
OVERAGE_THRESHOLD_DOLLARS: z.number().optional().default(100), // Dollar threshold for incremental overage billing (default: $100)
7676

7777
// Email & Communication
7878
EMAIL_VERIFICATION_ENABLED: z.boolean().optional(), // Enable email verification for user registration and login (defaults to false)

0 commit comments

Comments
 (0)