From a6e9de9b3c9f91c81645e992f9da8f4b1f3a48ac Mon Sep 17 00:00:00 2001 From: -LAN- Date: Wed, 22 Apr 2026 14:29:51 +0800 Subject: [PATCH] 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. --- api/core/app/llm/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/core/app/llm/__init__.py b/api/core/app/llm/__init__.py index 85f342de5d..d20a5b2344 100644 --- a/api/core/app/llm/__init__.py +++ b/api/core/app/llm/__init__.py @@ -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", ]