@@ -128,6 +128,7 @@ def create(
128128 cache : bool | Omit = omit ,
129129 cache_threshold : Literal ["super_strict_match" , "close_enough" , "flexible_friend" , "anything_goes" ]
130130 | Omit = omit ,
131+ cache_ttl : Literal [600 , 1800 , 3600 , 7200 , 21600 , 43200 , 86400 , 172800 , 259200 , 518400 ] | Omit = omit ,
131132 chunk : bool | Omit = omit ,
132133 chunk_overlap : int | Omit = omit ,
133134 chunk_size : int | Omit = omit ,
@@ -212,6 +213,10 @@ def create(
212213
213214 Lowercase alphanumeric, hyphens, and underscores.
214215
216+ cache_ttl: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
217+ (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
218+ (72h), 518400 (6d).
219+
215220 hybrid_search_enabled: Deprecated — use index_method instead.
216221
217222 index_method: Controls which storage backends are used during indexing. Defaults to
@@ -243,6 +248,7 @@ def create(
243248 "aisearch_model" : aisearch_model ,
244249 "cache" : cache ,
245250 "cache_threshold" : cache_threshold ,
251+ "cache_ttl" : cache_ttl ,
246252 "chunk" : chunk ,
247253 "chunk_overlap" : chunk_overlap ,
248254 "chunk_size" : chunk_size ,
@@ -324,6 +330,7 @@ def update(
324330 cache : bool | Omit = omit ,
325331 cache_threshold : Literal ["super_strict_match" , "close_enough" , "flexible_friend" , "anything_goes" ]
326332 | Omit = omit ,
333+ cache_ttl : Literal [600 , 1800 , 3600 , 7200 , 21600 , 43200 , 86400 , 172800 , 259200 , 518400 ] | Omit = omit ,
327334 chunk : bool | Omit = omit ,
328335 chunk_overlap : int | Omit = omit ,
329336 chunk_size : int | Omit = omit ,
@@ -438,10 +445,15 @@ def update(
438445 extra_body : Body | None = None ,
439446 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
440447 ) -> InstanceUpdateResponse :
441- """
442- Update instance.
448+ """Update instance.
443449
444450 Args:
451+ cache_ttl: Cache entry TTL in seconds.
452+
453+ Allowed values: 600 (10min), 1800 (30min), 3600
454+ (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
455+ (72h), 518400 (6d).
456+
445457 index_method: Controls which storage backends are used during indexing. Defaults to
446458 vector-only.
447459
@@ -475,6 +487,7 @@ def update(
475487 "aisearch_model" : aisearch_model ,
476488 "cache" : cache ,
477489 "cache_threshold" : cache_threshold ,
490+ "cache_ttl" : cache_ttl ,
478491 "chunk" : chunk ,
479492 "chunk_overlap" : chunk_overlap ,
480493 "chunk_size" : chunk_size ,
@@ -962,6 +975,7 @@ async def create(
962975 cache : bool | Omit = omit ,
963976 cache_threshold : Literal ["super_strict_match" , "close_enough" , "flexible_friend" , "anything_goes" ]
964977 | Omit = omit ,
978+ cache_ttl : Literal [600 , 1800 , 3600 , 7200 , 21600 , 43200 , 86400 , 172800 , 259200 , 518400 ] | Omit = omit ,
965979 chunk : bool | Omit = omit ,
966980 chunk_overlap : int | Omit = omit ,
967981 chunk_size : int | Omit = omit ,
@@ -1046,6 +1060,10 @@ async def create(
10461060
10471061 Lowercase alphanumeric, hyphens, and underscores.
10481062
1063+ cache_ttl: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1064+ (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1065+ (72h), 518400 (6d).
1066+
10491067 hybrid_search_enabled: Deprecated — use index_method instead.
10501068
10511069 index_method: Controls which storage backends are used during indexing. Defaults to
@@ -1077,6 +1095,7 @@ async def create(
10771095 "aisearch_model" : aisearch_model ,
10781096 "cache" : cache ,
10791097 "cache_threshold" : cache_threshold ,
1098+ "cache_ttl" : cache_ttl ,
10801099 "chunk" : chunk ,
10811100 "chunk_overlap" : chunk_overlap ,
10821101 "chunk_size" : chunk_size ,
@@ -1158,6 +1177,7 @@ async def update(
11581177 cache : bool | Omit = omit ,
11591178 cache_threshold : Literal ["super_strict_match" , "close_enough" , "flexible_friend" , "anything_goes" ]
11601179 | Omit = omit ,
1180+ cache_ttl : Literal [600 , 1800 , 3600 , 7200 , 21600 , 43200 , 86400 , 172800 , 259200 , 518400 ] | Omit = omit ,
11611181 chunk : bool | Omit = omit ,
11621182 chunk_overlap : int | Omit = omit ,
11631183 chunk_size : int | Omit = omit ,
@@ -1272,10 +1292,15 @@ async def update(
12721292 extra_body : Body | None = None ,
12731293 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
12741294 ) -> InstanceUpdateResponse :
1275- """
1276- Update instance.
1295+ """Update instance.
12771296
12781297 Args:
1298+ cache_ttl: Cache entry TTL in seconds.
1299+
1300+ Allowed values: 600 (10min), 1800 (30min), 3600
1301+ (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1302+ (72h), 518400 (6d).
1303+
12791304 index_method: Controls which storage backends are used during indexing. Defaults to
12801305 vector-only.
12811306
@@ -1309,6 +1334,7 @@ async def update(
13091334 "aisearch_model" : aisearch_model ,
13101335 "cache" : cache ,
13111336 "cache_threshold" : cache_threshold ,
1337+ "cache_ttl" : cache_ttl ,
13121338 "chunk" : chunk ,
13131339 "chunk_overlap" : chunk_overlap ,
13141340 "chunk_size" : chunk_size ,
0 commit comments