llmage/models/llm_api_map.json
2026-05-22 11:48:25 +08:00

106 lines
2.5 KiB
JSON

{
"table_name": "llm_api_map",
"summary": [
{
"name": "llm_api_map",
"title": "模型API映射表",
"primary": "id",
"catelog": "relation"
}
],
"fields": [
{
"name": "id",
"type": "varchar(32)",
"not_null": true,
"title": "主键ID"
},
{
"name": "llmid",
"type": "varchar(32)",
"not_null": true,
"title": "模型ID"
},
{
"name": "llmcatelogid",
"type": "varchar(32)",
"not_null": true,
"title": "模型分类ID"
},
{
"name": "apiname",
"type": "varchar(100)",
"not_null": true,
"title": "接口名称"
},
{
"name": "query_apiname",
"type": "varchar(100)",
"title": "任务结果查询接口名称"
},
{
"name": "query_period",
"type": "bigint",
"default": 30,
"title": "任务查询间隔(秒)"
},
{
"name": "ppid",
"type": "varchar(32)",
"title": "定价ID"
},
{
"name": "isdefaultcatelog",
"type": "varchar(1)",
"not_null": true,
"title": "缺省分类"
}
],
"indexes": [
{
"name": "idx_api_map_llmid",
"type": "normal",
"idxfields": ["llmid"],
"idxtype": "index"
},
{
"name": "idx_api_map_catelog",
"type": "normal",
"idxfields": ["llmcatelogid"],
"idxtype": "index"
},
{
"name": "idx_api_map_apiname",
"type": "normal",
"idxfields": ["apiname"],
"idxtype": "index"
},
{
"name": "uk_llmid_apiname",
"type": "unique",
"idxfields": ["llmid", "apiname"],
"idxtype": "unique"
}
],
"codes": [
{
"field": "llmid",
"table": "llm",
"valuefield": "id",
"textfield": "name"
},
{
"field": "llmcatelogid",
"table": "llmcatelog",
"valuefield": "id",
"textfield": "name"
},
{
"field": "ppid",
"table": "pricing_program",
"valuefield": "id",
"textfield": "name"
}
]
}