Skip to content

Commit 56edc9e

Browse files
committed
fix
Signed-off-by: yuluo-yx <[email protected]>
1 parent 290e1f3 commit 56edc9e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

website/docs/overview/architecture/system-architecture.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ type OpenAIRouter struct {
127127

128128
**Processing Pipeline**:
129129

130-
<ZoomableMermaid title="Processing Pipeline">
130+
<ZoomableMermaid title="Processing Pipeline" defaultZoom={3.5}>
131131
{`sequenceDiagram
132132
participant E as Envoy
133133
participant R as Router
@@ -163,7 +163,7 @@ The classification system uses ModernBERT models for multiple classification tas
163163

164164
#### Category Classification
165165

166-
<ZoomableMermaid title="Category Classification System">
166+
<ZoomableMermaid title="Category Classification System" defaultZoom={4.5}>
167167
{`graph LR
168168
Query[User Query] --> Tokenizer[ModernBERT Tokenizer]
169169
Tokenizer --> Encoder[ModernBERT Encoder<br/>768-dim embeddings]
@@ -216,8 +216,8 @@ class SemanticRouter:
216216

217217
### Request Processing Flow
218218

219-
<ZoomableMermaid title="Request Processing Flow" defaultZoom={1.3}>
220-
{`graph TB
219+
```mermaid
220+
graph TB
221221
Start([Client Request]) --> EnvoyReceive[Envoy Receives Request]
222222
223223
EnvoyReceive --> ExtProcSend[Send to ExtProc<br/>Headers + Body]
@@ -259,12 +259,12 @@ class SemanticRouter:
259259
style JailbreakCheck fill:#f44336
260260
style CategoryClassification fill:#4caf50
261261
style CacheCheck fill:#2196f3
262-
style RoutingDecision fill:#9c27b0`}
263-
</ZoomableMermaid>
262+
style RoutingDecision fill:#9c27b0
263+
```
264264

265265
### Response Processing Flow
266266

267-
<ZoomableMermaid title="Response Processing Flow">
267+
<ZoomableMermaid title="Response Processing Flow" defaultZoom={4.5}>
268268
{`sequenceDiagram
269269
participant C as Client
270270
participant E as Envoy
@@ -516,7 +516,7 @@ func (cb *CircuitBreaker) Call(operation func() error) error {
516516

517517
### Fallback Strategies
518518

519-
<ZoomableMermaid title="Fallback Strategies" defaultZoom={1.5}>
519+
<ZoomableMermaid title="Fallback Strategies" defaultZoom={2.5}>
520520
{`graph TB
521521
Request[Incoming Request] --> PrimaryRoute[Primary Routing Decision]
522522

website/src/components/ZoomableMermaid/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const ZoomableMermaid = ({ children, title, defaultZoom = 1.2 }) => {
2626
}, [])
2727

2828
const zoomIn = useCallback(() => {
29-
setZoomLevel(prev => Math.min(prev + 0.2, 3.0)) // Max 300%
29+
setZoomLevel(prev => Math.min(prev + 0.2, 5.0)) // Max 500%
3030
}, [])
3131

3232
const zoomOut = useCallback(() => {
@@ -155,7 +155,7 @@ const ZoomableMermaid = ({ children, title, defaultZoom = 1.2 }) => {
155155
<button
156156
className={styles.zoomButton}
157157
onClick={zoomIn}
158-
disabled={zoomLevel >= 3.0}
158+
disabled={zoomLevel >= 5.0}
159159
aria-label="Enlarge the chart"
160160
type="button"
161161
title="Enlarge (Shortcut key: +)"

0 commit comments

Comments
 (0)