161 lines
2.9 KiB
JSON
161 lines
2.9 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pipeline_llm_tokens",
|
|
"title": "LLM短期令牌",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "token",
|
|
"title": "令牌",
|
|
"type": "str",
|
|
"length": 80,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "机构ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "project_id",
|
|
"title": "项目ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "task_id",
|
|
"title": "任务ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "model_name",
|
|
"title": "模型名",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "purpose",
|
|
"title": "用途",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"default": "active"
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"title": "过期时间",
|
|
"type": "datetime",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "max_calls",
|
|
"title": "最大调用次数",
|
|
"type": "int",
|
|
"nullable": "no",
|
|
"default": "500"
|
|
},
|
|
{
|
|
"name": "call_count",
|
|
"title": "已调用次数",
|
|
"type": "int",
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "prompt_tokens",
|
|
"title": "输入tokens累计",
|
|
"type": "bigint",
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "completion_tokens",
|
|
"title": "输出tokens累计",
|
|
"type": "bigint",
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "last_used_at",
|
|
"title": "最后使用时间",
|
|
"type": "datetime"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "uk_token",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"token"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_org",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"org_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_project",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"project_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_status_exp",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"status",
|
|
"expires_at"
|
|
]
|
|
}
|
|
]
|
|
}
|