refactor(api): simplify llm quota helpers

Remove the temporary generic model-type quota helpers now that system-billed models are LLM-only.

Keep the deprecated ModelInstance wrappers as LLM-specific adapters with explicit non-LLM guards and update the quota tests to match the narrower invariant.
This commit is contained in:
-LAN- 2026-04-22 14:29:51 +08:00
parent 01aa6bf11e
commit a6e9de9b3c
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

View File

@ -3,17 +3,13 @@
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",
]