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): apply coy theme after code props on ReasoningContent

mubashir1osmani757d5a4dcd72
diff --git a/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx b/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx
index 84cdc345ad6..c7722046b02 100644
--- a/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx
+++ b/ui/litellm-dashboard/src/components/chat_ui/ReasoningContent.tsx
@@ -48,13 +48,13 @@ const ReasoningContent: React.FC<ReasoningContentProps> = ({ reasoningContent })
const match = /language-(\w+)/.exec(className || "");
return !inline && match ? (
<SyntaxHighlighter
- style={coy as unknown as { [key: string]: React.CSSProperties }}
language={match[1]}
PreTag="div"
className="my-2 rounded-md"
wrapLines={true}
wrapLongLines={true}
{...props}
+ style={coy as { [key: string]: React.CSSProperties }}
>
{String(children).replace(/\n$/, "")}
</SyntaxHighlighter>