Skip to content

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]

fix(ui): cast syntax highlighter theme through unknown

mubashir1osmani4aff515a8e47
diff --git a/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx b/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx
index 770fc7d62b7..84cdc345ad6 100644
--- a/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx
+++ b/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx
@@ -48,7 +48,7 @@ const ReasoningContent: React.FC<ReasoningContentProps> = ({ reasoningContent })
const match = /language-(\w+)/.exec(className || "");
return !inline && match ? (
<SyntaxHighlighter
- style={coy as Record<string, React.CSSProperties>}
+ style={coy as unknown as { [key: string]: React.CSSProperties }}
language={match[1]}
PreTag="div"
className="my-2 rounded-md"