update to $0.05 per step both in frontend and backend (#3495)

This commit is contained in:
Shuchang Zheng
2025-09-22 00:50:28 -04:00
committed by GitHub
parent ea7c54c271
commit 38fe260d2c

View File

@@ -1430,7 +1430,7 @@ class WorkflowService:
# TODO: This is a temporary cost calculation. We need to implement a more accurate cost calculation.
# successful steps are the ones that have a status of completed and the total count of unique step.order
successful_steps = [step for step in workflow_run_steps if step.status == StepStatus.completed]
total_cost = 0.1 * (len(successful_steps) + len(text_prompt_blocks))
total_cost = 0.05 * (len(successful_steps) + len(text_prompt_blocks))
return WorkflowRunResponseBase(
workflow_id=workflow.workflow_permanent_id,
workflow_run_id=workflow_run_id,