AI计价规则BUG修复

This commit is contained in:
2026-07-10 17:26:11 +08:00
parent f00c36c262
commit 0fd93e53b9
5 changed files with 136 additions and 24 deletions
+1
View File
@@ -339,6 +339,7 @@ async def optimize(
attempt_no=prompt_attempt_no,
charge_kind=CHARGE_TEXT_PROMPT,
usage=token_usage,
media_references=record.media_references,
)
await deduct_credits(
db, current_user.id, text_credits,