fix(consolidation): trigger compaction from reported usage, not just tiktoken estimates (#6260)

Co-authored-by: Muzhen2000 <254800372+Muzhen2000@users.noreply.github.com>
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-10-17 02:47:42 +08:00
1 parent bd779e9f54
commit faf1efaf09
5 files changed
+391 -3

No files matched your search

+1
View File
@@ -621,6 +621,7 @@ class FallbackProvider(LLMProvider):
)
finally:
await fallback_provider.aclose()
fallback_response.is_fallback = True
if fallback_exception is not None:
logger.warning(
"Fallback '{}' raised {}",