- llm_usage.status 各家归一枚举(其他=recharge对账行);accounting_status仅SUCCEEDED行写created,其余NULL不冒充待记账 - govern_settle失败行不再挂created;充值行不写accounting_status - 出账循环拾取条件 status='SUCCEEDED';面板/概览统计同步改 - llm_api_profile.method GET/POST独立列(默认POST),运行时读列决定动词;查询步骤存量兼容回退解析request_template.$.method - 字典llm_usage_status更新五枚举;README同步
120 lines
2.8 KiB
JSON
120 lines
2.8 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "llm_api_profile",
|
|
"title": "适配模板",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "模板名称",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "protocol",
|
|
"title": "协议类型",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "capability",
|
|
"title": "能力类型",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"default": "'t2t'"
|
|
},
|
|
{
|
|
"name": "path",
|
|
"title": "请求路径",
|
|
"type": "str",
|
|
"length": 200
|
|
},
|
|
{
|
|
"name": "method",
|
|
"title": "HTTP方法(GET/POST)",
|
|
"type": "str",
|
|
"length": 10,
|
|
"nullable": "no",
|
|
"default": "'POST'"
|
|
},
|
|
{
|
|
"name": "headers",
|
|
"title": "请求头(JSON)",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "request_template",
|
|
"title": "请求模板(Jinja2)",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "response_template",
|
|
"title": "响应模板(Jinja2)",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "param_schema",
|
|
"title": "参数Schema(bricks)",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"default": "'active'"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "protocol",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='llm_protocol'"
|
|
},
|
|
{
|
|
"field": "capability",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='llm_capability'"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='llm_status'"
|
|
}
|
|
]
|
|
}
|