|
|
@ -20,12 +20,8 @@ export function CostIndicator() { |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Show "?" if any external provider nodes exist (fal.ai, Replicate have unreliable pricing)
|
|
|
// Always show dollar format (external provider costs not included in total)
|
|
|
const hasExternalProviders = predictedCost.breakdown.some( |
|
|
const displayCost = formatCost(predictedCost.totalCost); |
|
|
(item) => item.provider === "fal" || item.provider === "replicate" |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const displayCost = hasExternalProviders ? "?" : formatCost(predictedCost.totalCost); |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<> |
|
|
<> |
|
|
|