+
+ onChange({ ...value, cache_aware_routing: next })}
+ aria-label="Cache-aware routing"
+ />
+ Consider prompt-cache savings
+
+
+ Disabled by default. Reuse a model with a warm prompt cache when its estimated total cost is lower and it meets
+ the selected tier or higher. Supports native Anthropic Messages with explicit prompt caching; unsupported
+ requests keep their usual route.
+
+ {reason && (
+
+ {enabled && "Cache-aware routing is currently skipped. "}
+ {reason}
+
+ )}
+ {enabled && (
+
+
+
+ Expected output tokens
+
+
+ onChange({
+ ...value,
+ cache_aware_routing_output_tokens: optionalInteger(event.target.value, 0),
+ })
+ }
+ aria-describedby="cache-aware-output-help"
+ />
+
+ Used to estimate cost, not to limit the response. Leave blank to use the default of 1024.
+
+
+
+
+ Prediction timeout (ms)
+
+
+ onChange({
+ ...value,
+ cache_aware_routing_timeout_ms: optionalInteger(event.target.value, 1),
+ })
+ }
+ aria-describedby="cache-aware-timeout-help"
+ />
+
+ Keep the original route if the comparison takes too long. Leave blank to use the default of 2000 ms.
+
+
+
+ )}
+
+ );
+};
+
+export default CacheAwareRoutingConfig;
diff --git a/ui/litellm-dashboard/src/components/add_model/ComplexityRouterAdvancedSections.tsx b/ui/litellm-dashboard/src/components/add_model/ComplexityRouterAdvancedSections.tsx
index a4e833152a9..98960897bb5 100644
--- a/ui/litellm-dashboard/src/components/add_model/ComplexityRouterAdvancedSections.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/ComplexityRouterAdvancedSections.tsx
@@ -5,6 +5,7 @@ import { Separator } from "@/components/ui/separator";
import type { ModelGroup } from "@/components/llm_calls/fetch_models";
import type { ComplexityRouterConfigValue } from "./ComplexityRouterConfig";
import AdaptiveRoutingConfig from "./AdaptiveRoutingConfig";
+import CacheAwareRoutingConfig from "./CacheAwareRoutingConfig";
import ClassificationMethodConfig from "./ClassificationMethodConfig";
import ForecastClassifierConfig from "./ForecastClassifierConfig";
import ContextWindowEscalationConfig from "./ContextWindowEscalationConfig";
@@ -141,6 +142,11 @@ const ComplexityRouterAdvancedSections: React.FC