@@ -9,12 +9,14 @@ def __init__(
99 baseURL : str = "" ,
1010 defaultModelProvider : str = "" ,
1111 defaultModel : str = "" ,
12+ cacheDir : str = "" ,
1213 env : Mapping [str , str ] = None ,
1314 ):
1415 self .APIKey = apiKey
1516 self .BaseURL = baseURL
1617 self .DefaultModel = defaultModel
1718 self .DefaultModelProvider = defaultModelProvider
19+ self .CacheDir = cacheDir
1820 if env is None :
1921 env = os .environ
2022 env_list = [f"{ k } ={ v } " for k , v in env .items ()]
@@ -28,6 +30,7 @@ def merge(self, other: Self) -> Self:
2830 cp .BaseURL = other .BaseURL if other .BaseURL != "" else self .BaseURL
2931 cp .DefaultModel = other .DefaultModel if other .DefaultModel != "" else self .DefaultModel
3032 cp .DefaultModelProvider = other .DefaultModelProvider if other .DefaultModelProvider != "" else self .DefaultModelProvider
33+ cp .CacheDir = other .CacheDir if other .CacheDir != "" else self .CacheDir
3134 cp .Env = (other .Env or []).extend (self .Env or [])
3235 return cp
3336
@@ -61,9 +64,10 @@ def __init__(self,
6164 apiKey : str = "" ,
6265 baseURL : str = "" ,
6366 defaultModelProvider : str = "" ,
64- defaultModel : str = ""
67+ defaultModel : str = "" ,
68+ cacheDir : str = "" ,
6569 ):
66- super ().__init__ (apiKey , baseURL , defaultModelProvider , defaultModel )
70+ super ().__init__ (apiKey , baseURL , defaultModelProvider , defaultModel , cacheDir )
6771 self .input = input
6872 self .disableCache = disableCache
6973 self .subTool = subTool
0 commit comments