diff --git a/design-system/apps/design-lab/src/i18n/flowChatMessages.ts b/design-system/apps/design-lab/src/i18n/flowChatMessages.ts index b2e79955cc..97c90fa996 100644 --- a/design-system/apps/design-lab/src/i18n/flowChatMessages.ts +++ b/design-system/apps/design-lab/src/i18n/flowChatMessages.ts @@ -86,7 +86,6 @@ export const flowChatEn = { "flowChat.modelRound.metrics.cache": "Cache hit rate", "flowChat.modelRound.metrics.averageRate": "Average output rate", "flowChat.modelRound.metrics.rateValue": "{value} tokens/s", - "flowChat.modelRound.metrics.rateBasis": "Output tokens divided by the whole turn duration, including tools and waits.", "detail.option.collapsed": "Collapsed", "detail.option.streaming": "Streaming", "detail.option.summary": "Summary", @@ -242,7 +241,6 @@ export const flowChatZhCN = { "flowChat.modelRound.metrics.cache": "缓存命中率", "flowChat.modelRound.metrics.averageRate": "平均输出速度", "flowChat.modelRound.metrics.rateValue": "{value} tokens/s", - "flowChat.modelRound.metrics.rateBasis": "输出 Token 除以整个回合耗时,包含工具执行与等待。", "detail.option.collapsed": "已收起", "detail.option.streaming": "流式更新", "detail.option.summary": "思考摘要", @@ -398,7 +396,6 @@ export const flowChatZhTW = { "flowChat.modelRound.metrics.cache": "快取命中率", "flowChat.modelRound.metrics.averageRate": "平均輸出速度", "flowChat.modelRound.metrics.rateValue": "{value} tokens/s", - "flowChat.modelRound.metrics.rateBasis": "輸出 Token 除以整個回合耗時,包含工具執行與等待。", "detail.option.collapsed": "已收合", "detail.option.streaming": "串流更新", "detail.option.summary": "思考摘要", diff --git a/design-system/apps/design-lab/src/preview/FlowChatPreviewRegistry.tsx b/design-system/apps/design-lab/src/preview/FlowChatPreviewRegistry.tsx index c76860ea89..0579c20dba 100644 --- a/design-system/apps/design-lab/src/preview/FlowChatPreviewRegistry.tsx +++ b/design-system/apps/design-lab/src/preview/FlowChatPreviewRegistry.tsx @@ -165,7 +165,7 @@ function TurnMetricsPreview({ state, interactive }: PreviewProps) { cacheHitRate={unknown ? null : 0.625} rateValue={unknown ? null : rateValue} rateDescription={rateRows.map(row => `${row.label}: ${row.value}`).join(" · ")} - rateDetails={} + rateDetails={} speedLevel={unknown ? null : 3} focusable={interactive} />; diff --git a/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_VIRTUALIZATION.md b/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_VIRTUALIZATION.md index bf7196c99e..8698939ecc 100644 --- a/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_VIRTUALIZATION.md +++ b/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_VIRTUALIZATION.md @@ -170,7 +170,8 @@ tool output count as effective output; metadata-only packets do not. The host reports this optional duration, so controller clock skew and event delivery latency do not affect it. The speed levels use output tokens divided by the sum of each call's request-to-completion time, including TTFT but excluding tool -execution, with thresholds at 15, 40 and 80 tokens/s disclosed in the Tooltip. +execution, with thresholds at 15, 40 and 80 tokens/s. Tooltips show only the +measured values and level, not the formula or thresholds. Missing or inconsistent timing in any model call, or retries whose earlier attempt timing is unavailable, omit speed rather than substituting partial turn time. Negative-index controller setup/audit rows are presentation only and do diff --git a/src/web-ui/src/flow_chat/components/modern/TurnUsageMetrics.tsx b/src/web-ui/src/flow_chat/components/modern/TurnUsageMetrics.tsx index 1fb5cf144b..3ac4368cdd 100644 --- a/src/web-ui/src/flow_chat/components/modern/TurnUsageMetrics.tsx +++ b/src/web-ui/src/flow_chat/components/modern/TurnUsageMetrics.tsx @@ -45,10 +45,10 @@ export function TurnUsageMetrics({ usage, durationMs, ttftMs, focusable }: { cacheHitRate={cacheHitRate} ttftValue={ttft === null ? null : t('modelRound.metrics.ttftValue', { value: ttft })} ttftDescription={ttftRows.map(row => `${row.label}: ${row.value}`).join(' · ')} - ttftDetails={} + ttftDetails={} rateValue={rate === null ? null : t('modelRound.metrics.rateValue', { value: rate })} rateDescription={rateRows.map(row => `${row.label}: ${row.value}`).join(' · ')} - rateDetails={} + rateDetails={} speedLevel={speedLevel} focusable={focusable} />; diff --git a/src/web-ui/src/locales/en-US/flow-chat.json b/src/web-ui/src/locales/en-US/flow-chat.json index 1da38432c2..7dc0117442 100644 --- a/src/web-ui/src/locales/en-US/flow-chat.json +++ b/src/web-ui/src/locales/en-US/flow-chat.json @@ -1835,8 +1835,6 @@ "rateValue": "{{value}} t/s", "ttft": "Time to first token", "ttftValue": "TTFT {{value}}", - "ttftBasis": "Request start to the first text, thinking or tool output of the first model call in this turn. For retried calls, this measures the accepted attempt.", - "rateBasis": "Output tokens divided by the sum of each model call’s request-to-completion time, including TTFT and excluding tool execution; speed levels change at 15, 40 and 80 tokens/s", "slow": "Slow", "normal": "Normal", "fast": "Fast", diff --git a/src/web-ui/src/locales/zh-CN/flow-chat.json b/src/web-ui/src/locales/zh-CN/flow-chat.json index 9faff75f3d..aa0a14f3e5 100644 --- a/src/web-ui/src/locales/zh-CN/flow-chat.json +++ b/src/web-ui/src/locales/zh-CN/flow-chat.json @@ -1835,8 +1835,6 @@ "rateValue": "{{value}} t/s", "ttft": "首 Token 延迟", "ttftValue": "TTFT {{value}}", - "ttftBasis": "本轮首次模型调用从发送请求到收到首个文字、思考或工具输出的耗时。发生重试时,显示最终采用的请求耗时。", - "rateBasis": "输出 Token 除以各次模型调用从请求开始到完成的时长之和,包含 TTFT,不含工具执行;档位分界为 15、40、80 Token/秒", "slow": "慢", "normal": "一般", "fast": "快", diff --git a/src/web-ui/src/locales/zh-TW/flow-chat.json b/src/web-ui/src/locales/zh-TW/flow-chat.json index 642f815e73..cebb2f1e95 100644 --- a/src/web-ui/src/locales/zh-TW/flow-chat.json +++ b/src/web-ui/src/locales/zh-TW/flow-chat.json @@ -1835,8 +1835,6 @@ "rateValue": "{{value}} t/s", "ttft": "首 Token 延遲", "ttftValue": "TTFT {{value}}", - "ttftBasis": "本輪首次模型呼叫從傳送請求到收到首個文字、思考或工具輸出的耗時。發生重試時,顯示最終採用的請求耗時。", - "rateBasis": "輸出 Token 除以各次模型呼叫從首個有效輸出到流結束的時長總和,不含 TTFT 和工具執行;檔位分界為 15、40、80 Token/秒", "slow": "慢", "normal": "一般", "fast": "快",