积分消耗明细改版V1

This commit is contained in:
2026-08-12 11:49:53 +08:00
parent e3719eae09
commit eb7c60684e
39 changed files with 648 additions and 975 deletions
@@ -3,24 +3,24 @@ from app.services.llm_billing.context import (
LlmBillingContext,
LlmBillingPolicy,
LlmBillingStateError,
LlmPreDeductResult,
LlmPreDeductValidation,
LlmChargeResult,
LlmChargeValidation,
)
from app.services.llm_billing.service import (
ensure_pre_deducted,
charge_llm_credits,
ensure_llm_charged,
finalize_llm_business_failure,
get_llm_ledger_states,
log_celery_dispatch_compensated,
log_celery_dispatch_failure,
log_celery_dispatch_start,
log_celery_dispatch_success,
log_provider_failure,
record_provider_exception,
log_provider_start,
log_provider_success,
refund_on_final_failure,
finalize_llm_business_failure,
mark_business_success,
pre_deduct,
record_provider_exception,
refund_on_final_failure,
validate_retryable_previous_attempt,
)
@@ -29,10 +29,10 @@ __all__ = [
"LlmBillingContext",
"LlmBillingPolicy",
"LlmBillingStateError",
"LlmPreDeductResult",
"LlmPreDeductValidation",
"pre_deduct",
"ensure_pre_deducted",
"LlmChargeResult",
"LlmChargeValidation",
"charge_llm_credits",
"ensure_llm_charged",
"get_llm_ledger_states",
"validate_retryable_previous_attempt",
"log_provider_start",