sageapi/models/llmage_cache.json
Hermes Agent 5c65c78752 feat: sageapi initial scaffold
- 36 files: module structure following module-development-spec
- 7 table definitions: users_cache, pricing_cache, llmage_cache, uapi_cache, sync_state, customer_balance, accounting_records
- Auth: dapi_auth + uapi_sign
- Sync: base_sync + entity-specific sync modules (users/pricing/uapi/llmage)
- Cache: LRU cache manager with TTL
- API: balance, accounting, users, pricing, health handlers
- Config: YAML config loader with env overrides
- Utils: HTTP client, crypto helpers
2026-05-20 17:53:53 +08:00

113 lines
2.2 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.

{
"summary": [
{
"name": "llmage_cache",
"title": "模型API映射缓存",
"primary": "id",
"classification": "cache"
}
],
"fields": [
{
"name": "id",
"type": "VARCHAR(32)",
"nullable": false,
"default": "",
"comment": "主键"
},
{
"name": "llmid",
"type": "VARCHAR(32)",
"nullable": false,
"default": "",
"comment": "关联模型ID"
},
{
"name": "model_name",
"type": "VARCHAR(128)",
"nullable": true,
"default": "",
"comment": "模型名称"
},
{
"name": "upappid",
"type": "VARCHAR(32)",
"nullable": false,
"default": "",
"comment": "上游应用ID"
},
{
"name": "apiname",
"type": "VARCHAR(128)",
"nullable": false,
"default": "",
"comment": "API名称"
},
{
"name": "api_url",
"type": "VARCHAR(512)",
"nullable": true,
"default": "",
"comment": "API端点URL"
},
{
"name": "api_params",
"type": "TEXT",
"nullable": true,
"default": null,
"comment": "API参数配置JSON"
},
{
"name": "model_params",
"type": "TEXT",
"nullable": true,
"default": null,
"comment": "模型参数配置JSONmax_tokens, temperature等"
},
{
"name": "status",
"type": "VARCHAR(16)",
"nullable": false,
"default": "active",
"comment": "状态: active/inactive"
},
{
"name": "sync_version",
"type": "VARCHAR(32)",
"nullable": true,
"default": "",
"comment": "同步版本号"
},
{
"name": "cached_at",
"type": "DATETIME",
"nullable": false,
"default": "CURRENT_TIMESTAMP",
"comment": "缓存写入时间"
}
],
"idxfields": [
{
"name": "idx_llmid",
"fields": [
"llmid"
],
"unique": false
},
{
"name": "idx_upappid",
"fields": [
"upappid"
],
"unique": false
},
{
"name": "idx_apiname",
"fields": [
"apiname"
],
"unique": false
}
],
"codes": []
}