llmage/models/llm_api_map.json
yumoqing 1060cac2de feat: llm_api_map CRUD management and ownerid-based data isolation
- Update json/llm.json subtable from llm_catelog_rel to llm_api_map
- Rewrite json/llm_api_map.json as standard CRUD format (tblname+params)
- Add models/llm_api_map.json table definition (summary/fields/indexes/codes)
- Add independent management UI (llm_api_map_manage.ui)
- Add CRUD DSPY APIs (list/create/delete/options) with ownerid filtering
- All operations verify l.ownerid for data isolation
- Add uapi_options.dspy for API selection dropdown
2026-05-20 17:29:27 +08:00

100 lines
2.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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,
"comment": "主键ID"
},
{
"name": "llmid",
"type": "varchar(32)",
"not_null": true,
"comment": "模型ID关联llm表"
},
{
"name": "llmcatelogid",
"type": "varchar(32)",
"not_null": true,
"comment": "模型分类ID关联llmcatelog表"
},
{
"name": "apiname",
"type": "varchar(100)",
"not_null": true,
"comment": "推理接口名称关联uapi表name字段"
},
{
"name": "query_apiname",
"type": "varchar(100)",
"comment": "异步任务结果查询接口名称,可逗号分隔多个"
},
{
"name": "query_period",
"type": "bigint",
"default": 30,
"comment": "异步任务查询轮询间隔默认30"
},
{
"name": "ppid",
"type": "varchar(32)",
"comment": "计费程序ID关联pricing_program表"
}
],
"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"
}
]
}