Ai proxy monitor (#5009)

* Time granularity and Table of a single model (#4990)

* Aiproxy ModelBoard

* Add components LineChartComponent and Make some revisions

* Time granularity and Table of a single model

* Modify the logic and sort the tables in ascending or descending order

* Use theme and present in seconds

* Add the channel name section (#5005)

* Add components LineChartComponent and Make some revisions

* Time granularity and Table of a single model

* Modify the logic and sort the tables in ascending or descending order

* Add the channel name section

* The channel_name is transmitted from the outer layer

* Restore the channel

* perf: dashboard code

* perf: ai proxy monitor

* code

---------

Co-authored-by: Zhuangzai fa <143257420+ctrlz526@users.noreply.github.com>
This commit is contained in:
Archer
2025-06-11 18:21:59 +08:00
committed by GitHub
parent abbfc436a3
commit 9f8b75fd7c
9 changed files with 998 additions and 309 deletions

View File

@@ -3,6 +3,8 @@
"aipoint_usage": "AI points",
"all": "All",
"api_key": "API key",
"avg_response_time": "Average call time (seconds)",
"avg_ttfb": "Average first word duration (seconds)",
"azure": "Azure",
"base_url": "Base url",
"channel_name": "Channel",
@@ -14,14 +16,28 @@
"channel_status_enabled": "Enable",
"channel_status_unknown": "unknown",
"channel_type": "Manufacturer",
"chart_mode_cumulative": "Cumulative",
"chart_mode_incremental": "Incremental",
"clear_model": "Clear the model",
"confirm_delete_channel": "Confirm the deletion of the [{{name}}] channel?",
"copy_model_id_success": "Copyed model id",
"create_channel": "Added channels",
"dashboard_call_trend": "Model Call Trend",
"dashboard_channel": "Channel",
"dashboard_cost_trend": "Cost Consumption",
"dashboard_error_calls": "Error Calls",
"dashboard_input_tokens": "Input Tokens",
"dashboard_model": "Model",
"dashboard_no_data": "No data available",
"dashboard_output_tokens": "Output Tokens",
"dashboard_points": "points",
"dashboard_success_calls": "Success Calls",
"dashboard_token_trend": "Token Usage Trend",
"dashboard_token_usage": "Tokens",
"dashboard_total_calls": "Total Calls:",
"dashboard_total_cost": "Total Cost",
"dashboard_total_cost_label": "Total Cost:",
"dashboard_total_tokens": "Total Tokens",
"default_url": "Default address",
"detail": "Detail",
"duration": "Duration",
@@ -38,7 +54,9 @@
"mapping": "Model Mapping",
"mapping_tip": "A valid Json is required. \nThe model can be mapped when sending a request to the actual address. \nFor example:\n{\n \n \"gpt-4o\": \"gpt-4o-test\"\n\n}\n\nWhen FastGPT requests the gpt-4o model, the gpt-4o-test model is sent to the actual address, instead of gpt-4o.",
"maxToken_tip": "Model max_tokens parameter",
"max_rpm": "Max RPM (Requests Per Minute)",
"max_temperature_tip": "If the model temperature parameter is not filled in, it means that the model does not support the temperature parameter.",
"max_tpm": "Max TPM (Tokens Per Minute)",
"model": "Model",
"model_error_rate": "Error rate",
"model_error_request_times": "Number of failures",
@@ -60,7 +78,15 @@
"selected_model_empty": "Choose at least one model",
"start_test": "Batch test {{num}} models",
"test_failed": "There are {{num}} models that report errors",
"timespan_day": "Day",
"timespan_hour": "Hour",
"timespan_label": "Time Granularity",
"timespan_minute": "Minute",
"total_call_volume": "Request amount",
"view_chart": "Chart",
"view_table": "Table",
"vlm_model": "Vlm",
"vlm_model_tip": "Used to generate additional indexing of images in a document in the knowledge base",
"volunme_of_failed_calls": "Error amount",
"waiting_test": "Waiting for testing"
}

View File

@@ -1,7 +1,10 @@
{
"Hunyuan": "腾讯混元",
"aipoint_usage": "积分消耗",
"all": "全部",
"api_key": "API 密钥",
"avg_response_time": "平均调用时长 (秒)",
"avg_ttfb": "平均首字时长 (秒)",
"azure": "微软 Azure",
"base_url": "代理地址",
"channel_name": "渠道名",
@@ -13,15 +16,28 @@
"channel_status_enabled": "启用",
"channel_status_unknown": "未知",
"channel_type": "厂商",
"chart_mode_cumulative": "累积",
"chart_mode_incremental": "分时",
"clear_model": "清空模型",
"confirm_delete_channel": "确认删除 【{{name}}】渠道?",
"copy_model_id_success": "已复制模型id",
"create_channel": "新增渠道",
"aipoint_usage": "积分消耗",
"dashboard_call_trend": "模型调用次数趋势",
"dashboard_channel": "渠道",
"dashboard_cost_trend": "积分消耗",
"dashboard_error_calls": "错误次数",
"dashboard_input_tokens": "输入Tokens",
"dashboard_model": "模型",
"dashboard_no_data": "暂无数据",
"dashboard_output_tokens": "输出Tokens",
"dashboard_points": "积分",
"dashboard_success_calls": "成功次数",
"dashboard_token_trend": "Tokens使用趋势",
"dashboard_token_usage": "Tokens 消耗",
"dashboard_total_calls": "总调用次数:",
"dashboard_total_cost": "总成本",
"dashboard_total_cost_label": "总成本:",
"dashboard_total_tokens": "总Tokens",
"default_url": "默认地址",
"detail": "详情",
"duration": "耗时",
@@ -38,7 +54,9 @@
"mapping": "模型映射",
"mapping_tip": "需填写一个有效 Json。可在向实际地址发送请求时对模型进行映射。例如\n{\n \"gpt-4o\": \"gpt-4o-test\"\n}\n当 FastGPT 请求 gpt-4o 模型时,会向实际地址发送 gpt-4o-test 的模型,而不是 gpt-4o。",
"maxToken_tip": "模型 max_tokens 参数",
"max_rpm": "最大RPM (每分钟请求数)",
"max_temperature_tip": "模型 temperature 参数,不填则代表模型不支持 temperature 参数。",
"max_tpm": "最大TPM (每分钟Token数)",
"model": "模型",
"model_error_rate": "失败率",
"model_error_request_times": "失败次数",
@@ -60,7 +78,15 @@
"selected_model_empty": "至少选择一个模型",
"start_test": "批量测试{{num}}个模型",
"test_failed": "有{{num}}个模型报错",
"timespan_day": "天",
"timespan_hour": "小时",
"timespan_label": "时间颗粒度",
"timespan_minute": "分钟",
"total_call_volume": "调用总量",
"view_chart": "图表",
"view_table": "表格",
"vlm_model": "图片理解模型",
"vlm_model_tip": "用于知识库中对文档中的图片进行额外的索引生成",
"volunme_of_failed_calls": "调用失败量",
"waiting_test": "等待测试"
}

View File

@@ -3,6 +3,8 @@
"aipoint_usage": "積分消耗",
"all": "全部",
"api_key": "API 金鑰",
"avg_response_time": "平均調用時長 (秒)",
"avg_ttfb": "平均首字時長 (秒)",
"azure": "Azure",
"base_url": "代理地址",
"channel_name": "管道名稱",
@@ -14,11 +16,28 @@
"channel_status_enabled": "啟用",
"channel_status_unknown": "未知",
"channel_type": "廠商",
"chart_mode_cumulative": "累積",
"chart_mode_incremental": "分時",
"clear_model": "清空模型",
"confirm_delete_channel": "確認刪除【{{name}}】管道?",
"copy_model_id_success": "已復制模型 id",
"create_channel": "新增管道",
"dashboard_call_trend": "模型呼叫次數趨勢",
"dashboard_channel": "管道",
"dashboard_cost_trend": "積分消耗",
"dashboard_error_calls": "錯誤次數",
"dashboard_input_tokens": "輸入Tokens",
"dashboard_model": "模型",
"dashboard_no_data": "暫無資料",
"dashboard_output_tokens": "輸出Tokens",
"dashboard_points": "積分",
"dashboard_success_calls": "成功次數",
"dashboard_token_trend": "Tokens使用趨勢",
"dashboard_token_usage": "Tokens 消耗",
"dashboard_total_calls": "總呼叫次數:",
"dashboard_total_cost": "總成本",
"dashboard_total_cost_label": "總成本:",
"dashboard_total_tokens": "總Tokens",
"default_url": "預設地址",
"detail": "詳細資訊",
"duration": "耗時",
@@ -35,7 +54,9 @@
"mapping": "模型對映",
"mapping_tip": "需填寫一個有效 Json。\n可在向實際地址傳送請求時對模型進行對映。\n例如\n{\n \n \"gpt-4o\": \"gpt-4o-test\"\n\n}\n\n當 FastGPT 請求 gpt-4o 模型時,會向實際地址傳送 gpt-4o-test 的模型,而不是 gpt-4o。",
"maxToken_tip": "模型 max_tokens 參數",
"max_rpm": "最大RPM (每分鐘請求數)",
"max_temperature_tip": "模型 temperature 參數,不填則代表模型不支援 temperature 參數。",
"max_tpm": "最大TPM (每分鐘Token數)",
"model": "模型",
"model_error_rate": "失敗率",
"model_error_request_times": "失敗次數",
@@ -57,7 +78,15 @@
"selected_model_empty": "至少選擇一個模型",
"start_test": "批次測試{{num}}個模型",
"test_failed": "有{{num}}個模型報錯",
"timespan_day": "天",
"timespan_hour": "小時",
"timespan_label": "時間顆粒度",
"timespan_minute": "分鐘",
"total_call_volume": "調用總量",
"view_chart": "圖表",
"view_table": "表格",
"vlm_model": "圖片理解模型",
"vlm_model_tip": "用於知識庫中對文件中的圖片進行額外的索引生成",
"volunme_of_failed_calls": "調用失敗量",
"waiting_test": "等待測試"
}