Commit fb85a4d
committed
fix: extend resolveCacheRetention to pass through cacheRetention for amazon-bedrock
The runtime resolveCacheRetention hard-gates on provider === "anthropic"
and returns undefined for amazon-bedrock, so cacheRetention set in model
params is never consumed at runtime for Bedrock models.
Extend the gate to also accept amazon-bedrock when cacheRetention is
explicitly configured. No default is applied for Bedrock since pi-ai
own provider already defaults to "short" internally.
Refs #219861 parent a0d636b commit fb85a4d
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments