mirror of
https://github.com/langgenius/dify.git
synced 2026-05-11 23:18:39 +08:00
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:
parent
01aa6bf11e
commit
a6e9de9b3c
@ -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",
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user