Skip to content

Commit 7ce6ca5

Browse files
ai: fix startup to allow 0 price on ai models (#3674)
1 parent e52c907 commit 7ce6ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/livepeer/starter/starter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ func StartLivepeer(ctx context.Context, cfg LivepeerConfig) {
14011401
pricePerUnit = pricePerUnitBase
14021402
currency = currencyBase
14031403
glog.Warningf("No 'pricePerUnit' specified for model '%v' in pipeline '%v'. Using default value from `-pricePerUnit`: %v", config.ModelID, config.Pipeline, *cfg.PricePerUnit)
1404-
} else if pricePerUnit.Sign() <= 0 {
1404+
} else if pricePerUnit.Sign() < 0 {
14051405
panic(fmt.Errorf("'pricePerUnit' value specified for model '%v' in pipeline '%v' must be a valid positive number, provided %v", config.ModelID, config.Pipeline, config.PricePerUnit))
14061406
}
14071407

0 commit comments

Comments
 (0)