mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(ui): cast syntax highlighter theme through unknown
This commit is contained in:
parent
38e1fe8ffd
commit
4aff515a8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue