Skip to content

Commit 3ecc067

Browse files
committed
fix: 修复 Mermaid 节点括号未加引号导致渲染失败
1 parent 5f2a89c commit 3ecc067

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/pages/ModelConfiguration.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export function ModelConfiguration() {
6060
<MermaidDiagram
6161
chart={`
6262
flowchart LR
63-
M[model string] --> S[tokenLimit(model)<br/>switch-case]
64-
S --> R[token limit]
63+
M["model string"] --> S["tokenLimit(model)<br/>switch-case"]
64+
S --> R["token limit"]
6565
6666
style S stroke:#276749
6767
style R stroke:#1e3a5f

src/pages/StreamingResponseProcessing.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ flowchart TD
207207
B -- No --> C{Has text?}
208208
C -- Yes --> D[GeminiEventType.Content]
209209
C -- No --> E{Has functionCalls?}
210-
E -- Yes --> F[GeminiEventType.ToolCallRequest\n(callId/name/args)]
210+
E -- Yes --> F["GeminiEventType.ToolCallRequest<br/>(callId/name/args)"]
211211
E -- No --> G{Has finishReason?}
212-
G -- Yes --> H[GeminiEventType.Finished\n(reason + usageMetadata)]
212+
G -- Yes --> H["GeminiEventType.Finished<br/>(reason + usageMetadata)"]
213213
G -- No --> I[Continue reading stream]
214214
`} />
215215

@@ -324,11 +324,11 @@ if (finishReason) {
324324

325325
<MermaidDiagram chart={`
326326
flowchart TD
327-
A[sendMessageStream() attempt #1] --> B{InvalidStreamError?}
327+
A["sendMessageStream() attempt #1"] --> B{InvalidStreamError?}
328328
B -- No --> C[正常消费 CHUNK]
329329
B -- Yes --> D[Yield StreamEventType.RETRY]
330330
D --> E[UI 丢弃 partial 内容]
331-
E --> F[sendMessageStream() attempt #2]
331+
E --> F2["sendMessageStream() attempt #2"]
332332
333333
style C fill:${getThemeColor("--mermaid-success-fill", "#dcfce7")},stroke:${getThemeColor("--color-success", "#15803d")},color:${getThemeColor("--color-text", "#1c1917")}
334334
style D fill:${getThemeColor("--mermaid-warning-fill", "#fef3c7")},stroke:${getThemeColor("--color-warning", "#b45309")},color:${getThemeColor("--color-text", "#1c1917")}

0 commit comments

Comments
 (0)