The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[Fix] Let setSecureItem propagate storage errors to callers
Yuneng Jiang20ed120d1a84
diff --git a/ui/litellm-dashboard/src/components/playground/chat_ui/ChatUI.tsx b/ui/litellm-dashboard/src/components/playground/chat_ui/ChatUI.tsxindex b93921a29eb..06a09ca2c37 100644--- a/ui/litellm-dashboard/src/components/playground/chat_ui/ChatUI.tsx+++ b/ui/litellm-dashboard/src/components/playground/chat_ui/ChatUI.tsx@@ -348,8 +348,12 @@ const ChatUI: React.FC<ChatUIProps> = ({]);useEffect(() => {- setSecureItem("apiKeySource", JSON.stringify(apiKeySource));- setSecureItem("apiKey", apiKey);+ try {+ setSecureItem("apiKeySource", JSON.stringify(apiKeySource));+ setSecureItem("apiKey", apiKey);+ } catch {+ // Storage full or unavailable — non-critical, skip persisting.+ }sessionStorage.setItem("endpointType", endpointType);sessionStorage.setItem("selectedTags", JSON.stringify(selectedTags));sessionStorage.setItem("selectedVectorStores", JSON.stringify(selectedVectorStores));diff --git a/ui/litellm-dashboard/src/utils/secureStorage.ts b/ui/litellm-dashboard/src/utils/secureStorage.tsindex 6942368bcf2..183b572e737 100644--- a/ui/litellm-dashboard/src/utils/secureStorage.ts+++ b/ui/litellm-dashboard/src/utils/secureStorage.ts@@ -18,11 +18,7 @@ function decode(encoded: string): string {}export function setSecureItem(key: string, value: string): void {- try {- window.sessionStorage.setItem(key, encode(value));- } catch {- // Storage full or unavailable — silently ignore.- }+ window.sessionStorage.setItem(key, encode(value));}export function getSecureItem(key: string): string | null {