From 70d740332fb6d28e32668d0d28e4ca76c9b60e0c Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 15 Apr 2025 21:10:08 -0700 Subject: [PATCH] [UI Polish] UI fixes for cache control injection settings (#10031) * ui fixes for cache control * docs inject cache control settings --- .../src/components/add_model/advanced_settings.tsx | 12 ++++++------ .../components/add_model/cache_control_settings.tsx | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsx b/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsx index 7a1cb93f4c..8ced27cd62 100644 --- a/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsx +++ b/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsx @@ -170,12 +170,6 @@ const AdvancedSettings: React.FC = ({ )} - - = ({ className="bg-gray-600" /> + + = ({ {showCacheControl && (
- Specify either a role (to cache all messages of that role) or a specific message index. - If both are provided, the index takes precedence. + Providers like Anthropic, Bedrock API require users to specify where to inject cache control checkpoints, + litellm can automatically add them for you as a cost saving feature. = ({ name={[field.name, 'role']} className="mb-0" style={{ width: '180px' }} - tooltip="Select a role to cache all messages of this type" + tooltip="LiteLLM will mark all messages of this role as cacheable" >