diff --git a/src/app/page.tsx b/src/app/page.tsx index 8d7b45b..11c436d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -35,7 +35,8 @@ export default function HomePage() { // 转换模型格式 const modelOptions = models.map((m) => ({ id: m.modelId, - name: m.displayName, + name: m.modelId, + displayName: m.displayName, tag: m.supportsThinking ? 'Thinking' : '', })); diff --git a/src/components/markdown/MarkdownRenderer.tsx b/src/components/markdown/MarkdownRenderer.tsx index c5e24f7..191a500 100644 --- a/src/components/markdown/MarkdownRenderer.tsx +++ b/src/components/markdown/MarkdownRenderer.tsx @@ -19,10 +19,10 @@ const markdownComponents = { const isInline = !match && !className; if (isInline) { - // 行内代码 + // 行内代码 - 无特殊样式,仅等宽字体 return ( {children} @@ -81,14 +81,14 @@ const markdownComponents = { // 列表 ul({ children }: { children?: React.ReactNode }) { return ( -