Skip to content

Commit 97de8fc

Browse files
author
linyuan.yang
committed
token 统计
1 parent 8d0f052 commit 97de8fc

4 files changed

Lines changed: 1170 additions & 360 deletions

File tree

‎packages/admin/src/i18n/en.ts‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,65 @@ export default {
882882
total: 'Cumulative',
883883
all_agents: 'All Agents',
884884
all_models: 'All Models',
885+
all_providers: 'All Providers',
886+
all_channels: 'All Channels',
887+
unknown_channel: 'Unknown Channel',
888+
unknown_channel_with_id: 'Unknown Channel ({id})',
889+
today: 'Today',
890+
last_days: 'Last {days} days',
891+
query: 'Query',
892+
reset: 'Reset',
893+
invalid_range: 'Start date cannot be later than end date',
894+
query_failed: 'Failed to query usage data',
895+
filtered_result: 'Current filtered result',
896+
avg_per_call: 'Average / Call',
897+
call_unit: 'call',
898+
uncached_input: 'Uncached Input',
899+
analysis: 'Usage Analysis',
900+
usage_trend: 'Usage Trend',
901+
click_chart_hint: 'Click a bar to inspect that period',
902+
selected_period: 'Viewing',
903+
view_all: 'View All',
904+
drilldown_hint: 'Model, agent, provider, and channel distribution for this period',
905+
drilldown_logs_hint: 'Every model call within this period',
906+
dimension_analysis: 'Dimension Details',
907+
dimension_analysis_hint: 'Compare tokens, calls, and share across dimensions',
908+
dimension: 'Dimension',
909+
name: 'Name',
910+
dimension_model: 'Model',
911+
dimension_agent: 'Agent',
912+
dimension_provider: 'Provider',
913+
dimension_channel: 'Channel',
914+
share: 'Share',
915+
session_id: 'Session ID',
916+
profile_id: 'Profile ID',
917+
call_logs_hint: 'Raw token record for every model call',
918+
page: 'page',
885919
daily_chart: 'Daily Usage Trend',
920+
hourly_chart: 'Hourly Usage Trend',
886921
chart_bar: 'Bar',
887922
chart_area: 'Area',
888923
chart_table: 'Table',
924+
granularity_daily: 'Daily',
925+
granularity_hourly: 'Hourly',
926+
column_time: 'Time',
927+
breakdown_model: 'Model Share',
928+
breakdown_agent: 'Agent Share',
929+
breakdown_provider: 'Provider Share',
930+
breakdown_channel: 'Channel Share',
931+
hour_distribution: 'Hour Distribution',
932+
call_count: 'Calls',
933+
cache_hit_rate: 'Cache Hit Rate',
934+
call_logs: 'Call Logs',
935+
prev_page: 'Prev',
936+
next_page: 'Next',
937+
page_of: 'Page {cur} / {total}',
938+
provider: 'Provider',
939+
channel: 'Channel',
940+
calls: 'Calls',
941+
other: 'Other',
942+
agent: 'Agent',
943+
model: 'Model',
889944
},
890945
heartbeats: {
891946
add: '+ Add Heartbeat',

‎packages/admin/src/i18n/zh.ts‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,65 @@ export default {
882882
total: '累计',
883883
all_agents: '全部智能体',
884884
all_models: '全部模型',
885+
all_providers: '全部供应商',
886+
all_channels: '全部渠道',
887+
unknown_channel: '未知渠道',
888+
unknown_channel_with_id: '未知渠道({id})',
889+
today: '今天',
890+
last_days: '近 {days} 天',
891+
query: '查询',
892+
reset: '重置',
893+
invalid_range: '开始日期不能晚于结束日期',
894+
query_failed: '用量数据查询失败',
895+
filtered_result: '当前筛选结果',
896+
avg_per_call: '单次平均',
897+
call_unit: '次',
898+
uncached_input: '非缓存输入',
899+
analysis: '用量分析',
900+
usage_trend: '用量趋势',
901+
click_chart_hint: '点击柱子查看该时段明细',
902+
selected_period: '当前查看',
903+
view_all: '查看全部',
904+
drilldown_hint: '当前时段的模型、智能体、供应商和渠道分布',
905+
drilldown_logs_hint: '当前时段内的每一次模型调用',
906+
dimension_analysis: '维度明细',
907+
dimension_analysis_hint: '按不同维度核对 Token、调用次数和占比',
908+
dimension: '维度',
909+
name: '名称',
910+
dimension_model: '模型',
911+
dimension_agent: '智能体',
912+
dimension_provider: '供应商',
913+
dimension_channel: '渠道',
914+
share: '占比',
915+
session_id: '会话 ID',
916+
profile_id: 'Profile ID',
917+
call_logs_hint: '每一次模型调用的原始 Token 记录',
918+
page: '页',
885919
daily_chart: '每日用量趋势',
920+
hourly_chart: '每小时用量趋势',
886921
chart_bar: '柱状图',
887922
chart_area: '面积图',
888923
chart_table: '数据表',
924+
granularity_daily: '每日',
925+
granularity_hourly: '每小时',
926+
column_time: '时间',
927+
breakdown_model: '模型占比',
928+
breakdown_agent: '智能体占比',
929+
breakdown_provider: '供应商占比',
930+
breakdown_channel: '渠道占比',
931+
hour_distribution: '小时分布',
932+
call_count: '调用次数',
933+
cache_hit_rate: '缓存命中率',
934+
call_logs: '调用明细',
935+
prev_page: '上一页',
936+
next_page: '下一页',
937+
page_of: '第 {cur} / {total} 页',
938+
provider: '供应商',
939+
channel: '渠道',
940+
calls: '调用次数',
941+
other: '其他',
942+
agent: '智能体',
943+
model: '模型',
889944
},
890945
heartbeats: {
891946
add: '+ 添加心跳',

0 commit comments

Comments
 (0)