- New llm_api_map table: extract ability-specific fields (apiname, query_apiname, query_period, ppid) from llm table to support one-model-multi-ability without redundancy - Remove uapiset from llmage JOIN chain: upapp.apisetid now directly joins uapi.apisetid - Updated BufferedLLMs.get_llm() to JOIN llm_api_map for query_apiname/query_period/ppid fields - Updated llmcheck.dspy and list_paging_catelog_llms.dspy to remove uapiset references - Added migration script to generate llm_api_map INSERTs from existing llm data
18 lines
1012 B
JSON
18 lines
1012 B
JSON
{
|
|
"summary": [{"name": "llm_api_map", "title": "模型能力映射表", "primary": ["id"], "catelog": "relation"}],
|
|
"fields": [
|
|
{"name": "id", "title": "主键", "type": "str", "length": 21, "nullable": "no"},
|
|
{"name": "llmid", "title": "模型ID", "type": "str", "length": 21, "nullable": "no"},
|
|
{"name": "llmcatelogid", "title": "类目ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "apiname", "title": "API接口名", "type": "str", "length": 100, "nullable": "no"},
|
|
{"name": "query_apiname", "title": "结果查询API名", "type": "str", "length": 100},
|
|
{"name": "query_period", "title": "查询间隔(秒)", "type": "int"},
|
|
{"name": "ppid", "title": "定价项目ID", "type": "str", "length": 21}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_llm_api_llm", "idxtype": "index", "idxfields": ["llmid"]},
|
|
{"name": "idx_llm_api_catelog", "idxtype": "unique", "idxfields": ["llmid", "llmcatelogid"]}
|
|
],
|
|
"codes": []
|
|
}
|