206 lines
4.9 KiB
JSON
206 lines
4.9 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "llm_model",
|
|
"title": "模型注册",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "vendor_id",
|
|
"title": "供应商ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "account_id",
|
|
"title": "默认账号ID",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "模型注册名",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "vendor_model_id",
|
|
"title": "供应商侧模型名",
|
|
"type": "str",
|
|
"length": 100
|
|
},
|
|
{
|
|
"name": "capability",
|
|
"title": "能力类型",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"default": "'t2t'"
|
|
},
|
|
{
|
|
"name": "sync_mode",
|
|
"title": "同步性",
|
|
"type": "str",
|
|
"length": 10,
|
|
"nullable": "no",
|
|
"default": "'sync'"
|
|
},
|
|
{
|
|
"name": "profile_id",
|
|
"title": "适配模板ID",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "query_profile_ids",
|
|
"title": "后续步骤模板链(JSON)",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "ppid",
|
|
"title": "定价项目ID",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "price_input",
|
|
"title": "输入单价(元/千token)",
|
|
"type": "float",
|
|
"length": 12,
|
|
"dec": 6,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "price_output",
|
|
"title": "输出单价(元/千token)",
|
|
"type": "float",
|
|
"length": 12,
|
|
"dec": 6,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "cost_input",
|
|
"title": "输入成本(元/千token)",
|
|
"type": "float",
|
|
"length": 12,
|
|
"dec": 6,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "cost_output",
|
|
"title": "输出成本(元/千token)",
|
|
"type": "float",
|
|
"length": 12,
|
|
"dec": 6,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "default_params",
|
|
"title": "默认参数(JSON)",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "no",
|
|
"default": "'active'"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "所属机构",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": "'0'"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "uk_llm_model_name",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"name"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_llm_model_vendor",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"vendor_id"
|
|
]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "vendor_id",
|
|
"table": "llm_vendor",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "account_id",
|
|
"table": "llm_account",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "profile_id",
|
|
"table": "llm_api_profile",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"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'"
|
|
},
|
|
{
|
|
"field": "ppid",
|
|
"table": "pricing_program",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
}
|
|
]
|
|
}
|