File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 36893689 "缓存创建-5分钟 (cc5)" : " Cache Creation-5min (cc5)" ,
36903690 "缓存创建-1小时 (cc1h)" : " Cache Creation-1hour (cc1h)" ,
36913691 "阶梯计费" : " Tiered Billing" ,
3692+ "阶梯计费(表达式解析失败)" : " Tiered Billing (expression parse failed)" ,
3693+ "阶梯计费(未匹配到对应阶梯)" : " Tiered Billing (no matching tier)" ,
36923694 "输入 Tokens 阶梯" : " Input Token Tiers" ,
36933695 "输出 Tokens 阶梯" : " Output Token Tiers" ,
36943696 "固定阶梯" : " Fixed Tier" ,
Original file line number Diff line number Diff line change 36423642 "默认折叠侧边栏" : " Réduire la barre latérale par défaut" ,
36433643 "默认测试模型" : " Modèle de test par défaut" ,
36443644 "默认用户消息" : " Bonjour" ,
3645- "默认补全倍率" : " Taux de complétion par défaut"
3645+ "默认补全倍率" : " Taux de complétion par défaut" ,
3646+ "阶梯计费(表达式解析失败)" : " Facturation par paliers (échec de l'analyse de l'expression)" ,
3647+ "阶梯计费(未匹配到对应阶梯)" : " Facturation par paliers (aucun palier correspondant)"
36463648 }
36473649}
Original file line number Diff line number Diff line change 36113611 "默认折叠侧边栏" : " サイドバーをデフォルトで折りたたむ" ,
36123612 "默认测试模型" : " デフォルトテストモデル" ,
36133613 "默认用户消息" : " こんにちは" ,
3614- "默认补全倍率" : " デフォルト補完倍率"
3614+ "默认补全倍率" : " デフォルト補完倍率" ,
3615+ "阶梯计费(表达式解析失败)" : " 段階課金(式の解析に失敗)" ,
3616+ "阶梯计费(未匹配到对应阶梯)" : " 段階課金(一致する階層なし)"
36153617 }
36163618}
Original file line number Diff line number Diff line change 36623662 "默认折叠侧边栏" : " Сворачивать боковую панель по умолчанию" ,
36633663 "默认测试模型" : " Модель для тестирования по умолчанию" ,
36643664 "默认用户消息" : " Здравствуйте" ,
3665- "默认补全倍率" : " Коэффициент завершения по умолчанию"
3665+ "默认补全倍率" : " Коэффициент завершения по умолчанию" ,
3666+ "阶梯计费(表达式解析失败)" : " Многоуровневая тарификация (ошибка разбора выражения)" ,
3667+ "阶梯计费(未匹配到对应阶梯)" : " Многоуровневая тарификация (подходящий уровень не найден)"
36663668 }
36673669}
Original file line number Diff line number Diff line change 41764176 "默认折叠侧边栏" : " Mặc định thu gọn thanh bên" ,
41774177 "默认测试模型" : " Mô hình kiểm tra mặc định" ,
41784178 "默认用户消息" : " Xin chào" ,
4179- "默认补全倍率" : " Tỷ lệ hoàn thành mặc định"
4179+ "默认补全倍率" : " Tỷ lệ hoàn thành mặc định" ,
4180+ "阶梯计费(表达式解析失败)" : " Thanh toán theo bậc (không phân tích được biểu thức)" ,
4181+ "阶梯计费(未匹配到对应阶梯)" : " Thanh toán theo bậc (không tìm thấy bậc phù hợp)"
41804182 }
41814183}
Original file line number Diff line number Diff line change 36763676 "缓存创建-5分钟 (cc5)" : " 缓存创建-5分钟 (cc5)" ,
36773677 "缓存创建-1小时 (cc1h)" : " 缓存创建-1小时 (cc1h)" ,
36783678 "阶梯计费" : " 阶梯计费" ,
3679+ "阶梯计费(表达式解析失败)" : " 阶梯计费(表达式解析失败)" ,
3680+ "阶梯计费(未匹配到对应阶梯)" : " 阶梯计费(未匹配到对应阶梯)" ,
36793681 "输入 Tokens 阶梯" : " 输入 Tokens 阶梯" ,
36803682 "输出 Tokens 阶梯" : " 输出 Tokens 阶梯" ,
36813683 "固定阶梯" : " 固定阶梯" ,
Original file line number Diff line number Diff line change 36353635 "默认折叠侧边栏" : " 預設摺疊側邊欄" ,
36363636 "默认测试模型" : " 預設測試模型" ,
36373637 "默认用户消息" : " 你好" ,
3638- "默认补全倍率" : " 預設補全倍率"
3638+ "默认补全倍率" : " 預設補全倍率" ,
3639+ "阶梯计费(表达式解析失败)" : " 階梯計費(表達式解析失敗)" ,
3640+ "阶梯计费(未匹配到对应阶梯)" : " 階梯計費(未匹配到對應階梯)"
36393641 }
36403642}
Original file line number Diff line number Diff line change 25882588 "关闭后将不再显示此提示(仅对当前浏览器生效)。确定要关闭吗?" : " 关闭后将不再显示此提示(仅对当前浏览器生效)。确定要关闭吗?" ,
25892589 "关闭提示" : " 关闭提示" ,
25902590 "说明:本页测试为非流式请求;若渠道仅支持流式返回,可能出现测试失败,请以实际使用为准。" : " 说明:本页测试为非流式请求;若渠道仅支持流式返回,可能出现测试失败,请以实际使用为准。" ,
2591- "提示:端点映射仅用于模型广场展示,不会影响模型真实调用。如需配置真实调用,请前往「渠道管理」。" : " 提示:端点映射仅用于模型广场展示,不会影响模型真实调用。如需配置真实调用,请前往「渠道管理」。"
2591+ "提示:端点映射仅用于模型广场展示,不会影响模型真实调用。如需配置真实调用,请前往「渠道管理」。" : " 提示:端点映射仅用于模型广场展示,不会影响模型真实调用。如需配置真实调用,请前往「渠道管理」。" ,
2592+ "阶梯计费(表达式解析失败)" : " 阶梯计费(表达式解析失败)" ,
2593+ "阶梯计费(未匹配到对应阶梯)" : " 阶梯计费(未匹配到对应阶梯)"
25922594 }
25932595}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121 MATCH_LT ,
2222 MATCH_RANGE ,
2323 SOURCE_TIME ,
24+ normalizeTierLabel ,
2425 parseTiersFromExpr ,
2526 splitBillingExprAndRequestRules ,
2627 tryParseRequestRuleExpr ,
@@ -168,6 +169,9 @@ export function DynamicPricingBreakdown({
168169
169170 const hasTiers = tiers . length > 0
170171 const hasRules = ruleGroups . length > 0
172+ const normalizedMatchedTierLabel = normalizeTierLabel (
173+ matchedTierLabel ?? undefined
174+ )
171175
172176 if ( ! expr ) return null
173177
@@ -307,9 +311,9 @@ export function DynamicPricingBreakdown({
307311 { tiers . map ( ( tier , i ) => {
308312 const condSummary = formatConditionSummary ( tier . conditions , t )
309313 const isMatched =
310- matchedTierLabel != null &&
311- matchedTierLabel !== '' &&
312- tier . label === matchedTierLabel
314+ normalizedMatchedTierLabel !== '' &&
315+ normalizeTierLabel ( tier . label ) ===
316+ normalizedMatchedTierLabel
313317 return (
314318 < TableRow
315319 key = { `tier-${ i } ` }
You can’t perform that action at this time.
0 commit comments