@@ -44,20 +44,6 @@ class ConnectionConfig:
4444 retry_policy : RetryPolicy
4545
4646
47- @dataclass
48- class CacheConfig :
49- """
50- Configuration for caching API responses locally.
51-
52- Parameters
53- ----------
54- dir : str
55- Path to the directory where cached files will be stored.
56- """
57-
58- dir : str
59-
60-
6147@dataclass
6248class Config :
6349 """
@@ -71,16 +57,17 @@ class Config:
7157 Primary API version to use (default is V1).
7258 fallback_api_version : APIVersion or None
7359 Optional fallback API version if the primary API does not support certain operations.
60+ cache_dir : str
61+ Path to the directory where cached files will be stored.
7462 api_configs : dict of APIVersion to APIConfig
7563 Mapping from API version to its server/base URL and API key configuration.
7664 connection : ConnectionConfig
7765 Settings for request retries and retry policy.
78- cache : CacheConfig
79- Settings for local caching of API responses.
8066 """
8167
8268 api_version : APIVersion = APIVersion .V1
8369 fallback_api_version : APIVersion | None = None
70+ cache_dir : str = str (_resolve_default_cache_dir ())
8471
8572 api_configs : dict [APIVersion , APIConfig ] = field (
8673 default_factory = lambda : {
@@ -103,9 +90,3 @@ class Config:
10390 retry_policy = RetryPolicy .HUMAN ,
10491 )
10592 )
106-
107- cache : CacheConfig = field (
108- default_factory = lambda : CacheConfig (
109- dir = str (_resolve_default_cache_dir ()),
110- )
111- )
0 commit comments