- {debugSettings.proxyDebugTraceEnabled ? '开启中,结果会自动刷新' : '尚未开启'}
+
+ {debugPanelLoading && debugTraces.length === 0 ? (
+
加载调试追踪中...
+ ) : debugTraces.length === 0 ? (
+
+ {debugSettings.proxyDebugTraceEnabled
+ ? '暂时还没有新追踪。这里只显示开启后产生的新请求,等下一次代理请求进入就会出现在这里。'
+ : '调试追踪尚未开启。点击上方“开启调试”或“调试设置”后,新的代理请求会出现在这里。'}
+
+ ) : isMobile ? (
+
+ {visibleDebugTraces.map((trace) => (
+ openDebugTraceDetailModal(trace.id)}
+ >
+ 查看详情
+
+ )}
+ >
+
+
+
+
+
+ ))}
+
+ ) : (
+
+
+
+ | 时间 |
+ Session |
+ 模型 |
+ 下游路径 |
+ 上游路径 |
+ 客户端 |
+ {tr('状态')} |
+ 操作 |
+
+
+
+ {visibleDebugTraces.map((trace) => (
+
+ |
+ {formatDateTimeLocal(trace.createdAt)}
+ |
+ {trace.sessionId || `trace-${trace.id}`} |
+ {trace.requestedModel || '-'} |
+ {trace.downstreamPath || '-'} |
+ {trace.finalUpstreamPath || '-'} |
+ {trace.clientKind || '-'} |
+ {renderTraceStatusBadge(trace)} |
+
+
+ |
+
+ ))}
+
+
+ )}
+ {debugTraces.length > 0 ? (
+
+
+ 显示第 {debugTraceDisplayedStart} - {debugTraceDisplayedEnd} 条,共 {debugTraces.length} 条
+
+
+ {Array.from({ length: debugTraceTotalPages }, (_, index) => index + 1).map((num) => (
+
+ ))}
+
+
+ ) : null}