+
+
+
+ Cache Control Injection Points
+
+
+ Choose message locations where LiteLLM should inject cache-control markers.{" "}
+
+ Learn more
+
+
+
+
+
+
+ {injectionPoints === undefined && (
+
+ The configured injection points use values this editor does not support and will be preserved unchanged.
+
+ )}
+
+ {enabled &&
}
+
+ );
+};
+
+export default CacheControlInjectionPointsSection;
diff --git a/ui/litellm-dashboard/src/components/router_settings/RouterSettingsForm.test.tsx b/ui/litellm-dashboard/src/components/router_settings/RouterSettingsForm.test.tsx
index 90f2edb6b48..8a8e468a821 100644
--- a/ui/litellm-dashboard/src/components/router_settings/RouterSettingsForm.test.tsx
+++ b/ui/litellm-dashboard/src/components/router_settings/RouterSettingsForm.test.tsx
@@ -156,14 +156,51 @@ describe("RouterSettingsForm", () => {
);
});
- it("should not render Default LiteLLM Params when persisted values exist", () => {
+ it("should render cache-control fields without rendering the raw Default LiteLLM Params input", () => {
const props = {
...baseProps,
- value: { ...defaultValue, routerSettings: { default_litellm_params: { timeout: 30 } } },
+ value: {
+ ...defaultValue,
+ routerSettings: {
+ default_litellm_params: {
+ timeout: 30,
+ cache_control_injection_points: [{ location: "message", role: "system", index: -1 }],
+ },
+ },
+ },
};
render(