update to $0.05 per step both in frontend and backend (#3495)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user