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 build: use `as any` for SyntaxHighlighter style prop

yuneng-jiangebe329cdce15
diff --git a/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx b/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx
index 148cd082e22..15978c17f7e 100644
--- a/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx
+++ b/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx
@@ -143,7 +143,7 @@ function ChatMessageBubble({
const match = /language-(\w+)/.exec(className || "");
return !inline && match ? (
<SyntaxHighlighter
- style={coy as Record<string, React.CSSProperties>}
+ style={coy as any}
language={match[1]}
PreTag="div"
className="rounded-md my-2"