@purpleschool/gptbot-tools 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,7 +17,7 @@ function matchesCondition(condition, params) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function calculateVideoGenerationPrice({ pricePerSecond, params, rules, }) {
|
|
20
|
-
const base =
|
|
20
|
+
const base = pricePerSecond * params.duration;
|
|
21
21
|
const flatMarkup = rules.reduce((sum, r) => {
|
|
22
22
|
if (r.type !== enums_1.VIDEO_PRICING_RULE_TYPE.FLAT) {
|
|
23
23
|
return sum;
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export function calculateVideoGenerationPrice({
|
|
|
36
36
|
params: VideoGenerationRequestParams;
|
|
37
37
|
rules: VideoModelPricingRules;
|
|
38
38
|
}) {
|
|
39
|
-
const base =
|
|
39
|
+
const base = pricePerSecond * params.duration;
|
|
40
40
|
|
|
41
41
|
const flatMarkup = rules.reduce((sum, r) => {
|
|
42
42
|
if (r.type !== VIDEO_PRICING_RULE_TYPE.FLAT) {
|