refactor(api): include model type in quota identity

Add model-type-aware quota helpers at the shared billing boundary while keeping the LLM-specific helpers as thin adapters.

Preserve model_type in the deprecated ModelInstance wrappers and extend the quota unit tests to cover the generic helper delegation path.
This commit is contained in:
-LAN- 2026-04-22 14:19:43 +08:00
parent 5862b27044
commit 01aa6bf11e
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

View File

@ -3,13 +3,17 @@
from .quota import (
deduct_llm_quota,
deduct_llm_quota_for_model,
deduct_model_quota,
ensure_llm_quota_available,
ensure_llm_quota_available_for_model,
ensure_model_quota_available,
)
__all__ = [
"deduct_llm_quota",
"deduct_llm_quota_for_model",
"deduct_model_quota",
"ensure_llm_quota_available",
"ensure_llm_quota_available_for_model",
"ensure_model_quota_available",
]