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:
5 files changed
+391
-3
No files matched your search
@@ -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 {}",
|
||||
|
||||
Reference in new issue
Block a user