mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
fix(ui): apply coy theme after code props on ReasoningContent
This commit is contained in:
parent
4aff515a8e
commit
757d5a4dcd
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue