File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
autogen/agentchat/contrib/capabilities Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ def __init__(
325
325
text_compressor : Optional [TextCompressor ] = None ,
326
326
min_tokens : Optional [int ] = None ,
327
327
compression_params : Dict = dict (),
328
- cache : Optional [AbstractCache ] = Cache . disk () ,
328
+ cache : Optional [AbstractCache ] = None ,
329
329
filter_dict : Optional [Dict ] = None ,
330
330
exclude_filter : bool = True ,
331
331
):
@@ -355,7 +355,11 @@ def __init__(
355
355
self ._compression_args = compression_params
356
356
self ._filter_dict = filter_dict
357
357
self ._exclude_filter = exclude_filter
358
- self ._cache = cache
358
+
359
+ if cache is None :
360
+ self ._cache = Cache .disk ()
361
+ else :
362
+ self ._cache = cache
359
363
360
364
# Optimizing savings calculations to optimize log generation
361
365
self ._recent_tokens_savings = 0
You can’t perform that action at this time.
0 commit comments