feat(execution): base execution charge of 0.001/execution#817
feat(execution): base execution charge of 0.001/execution#817icecrasher321 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Greptile Summary
This PR introduces a base execution charge of $0.001 for every workflow execution in the Sim Studio platform. The change adds a new billing constant BASE_EXECUTION_CHARGE defined in apps/sim/lib/billing/constants.ts. This represents a fundamental shift in the billing model to ensure users pay for computational resources consumed during workflow execution, regardless of whether the workflow uses AI models or LLM-based blocks.
The base charge operates independently of the existing cost multiplier system that affects model costs, ensuring consistent pricing across different environments. The charge applies to all executions, including failed ones, acknowledging that compute time is consumed even when workflows don't complete successfully. This integrates with the existing userStats billing system, maintaining consistency with the current billing infrastructure.
This change addresses a gap in the previous billing model where only LLM usage was monetized, leaving non-AI workflow executions unaccounted for in terms of operational cost recovery.
Confidence score: 5/5
- This PR is extremely safe to merge as it only adds a well-defined constant without any implementation logic.
- The change is minimal, well-documented, and follows established patterns by creating a dedicated constants file for billing configuration.
- Only the new constants file needs attention, which is straightforward and low-risk.
1 file reviewed, no comments
Description
Charge $0.001/execution regardless of whether LLM-based blocks are there.
Type of change
How Has This Been Tested?
Checklist:
bun run test)Security Considerations: