server : (webui) fix numeric settings being saved as string (#11739)

* server : (webui) fix numeric settings being saved as string

* add some more comments
This commit is contained in:
Xuan-Son Nguyen authored and GitHub committed 2025-02-08 10:42:34 +01:00
1 parent d2fe216fb2
commit 0cf867160c
3 files changed
+53 -37

No files matched your search

@@ -23,6 +23,7 @@ export default function MarkdownDisplay({ content }: { content: string }) {
button: (props) => (
<CopyCodeButton {...props} origContent={preprocessedContent} />
),
// note: do not use "pre", "p" or other basic html elements here, it will cause the node to re-render when the message is being generated (this should be a bug with react-markdown, not sure how to fix it)
}}
>
{preprocessedContent}