极速成片页面和提炼提示词
This commit is contained in:
@@ -33,6 +33,8 @@ _CONFIG_TTL = 60
|
||||
# 实扣会比消费页公示价低一半(review 确认的三方不一致)。
|
||||
FLAT_FALLBACK_POINTS = Decimal("10")
|
||||
FLAT_FALLBACK_POINTS_IMAGE = Decimal("20")
|
||||
# 提炼提示词 / 上传视频提炼:功能挂牌价,不跟 Gemini unit_price(那是普通文本 10 积分/次)。
|
||||
VIDEO_DIGEST_POINTS = Decimal("30")
|
||||
|
||||
|
||||
def get_billing_config() -> BillingConfig:
|
||||
@@ -114,6 +116,26 @@ def quote_flat(model_config, *, units: int = 1, team=None) -> Quote:
|
||||
)
|
||||
|
||||
|
||||
def quote_video_digest(*, team=None, model_config=None) -> Quote:
|
||||
"""提炼提示词:固定 30 积分/次。失败退还。team 传入则乘团队价格系数。"""
|
||||
multiplier = team_price_multiplier(team)
|
||||
points = apply_team_price(VIDEO_DIGEST_POINTS, multiplier)
|
||||
base_cost = Decimal("0")
|
||||
if model_config is not None:
|
||||
base_cost = Decimal(str(_pricing_meta(model_config).get("base_cost_yuan") or 0))
|
||||
return Quote(
|
||||
points=points,
|
||||
base_cost_yuan=base_cost,
|
||||
meta={
|
||||
"rule": "video_digest_flat",
|
||||
"units": 1,
|
||||
"unit_points": str(VIDEO_DIGEST_POINTS),
|
||||
"price_multiplier": str(multiplier),
|
||||
"rate": str(get_billing_config().points_per_yuan),
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
def quote_voiceover(model_config, *, char_count: int, team=None) -> Quote:
|
||||
"""配音字符阶梯:ceil(chars / chars_per_unit) × points_per_unit,最低 min_units 档。team 传入则乘系数。"""
|
||||
pricing = _pricing_meta(model_config)
|
||||
|
||||
Reference in New Issue
Block a user