llm_metrics: 从 llmusage 抽取的轻量指标表 - userid, llmid, use_date, input/output/total tokens - amount, responsed_seconds, finish_seconds user_llm_policy: 用户模型策略(customer.admin 管理) - 每个用户每个模型可单独设限 - daily/monthly_call_limit, spending_alert/ceiling, max_concurrency - 缺省空=不限 - orgid+userid+llmid 唯一约束 菜单新增: 用户模型策略、模型使用指标
19 lines
510 B
JSON
19 lines
510 B
JSON
{
|
|
"tblname": "user_llm_policy",
|
|
"title": "用户模型策略",
|
|
"params": {
|
|
"sortby": "userid",
|
|
"logined_userorgid": "orgid",
|
|
"browserfields": {
|
|
"exclouded": ["id", "orgid", "created_at", "updated_at"],
|
|
"cwidth": {}
|
|
},
|
|
"editexclouded": ["id", "orgid", "created_at", "updated_at", "created_by"],
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "orgid", "op": "=", "var": "orgid"}
|
|
]
|
|
}
|
|
}
|
|
}
|