112 lines
2.6 KiB
JSON
112 lines
2.6 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": "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'"
|
|
}
|
|
]
|
|
}
|