94 lines
2.1 KiB
JSON
94 lines
2.1 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "modelpricing",
|
|
"title": "模型计费",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "modelinstanceid",
|
|
"title": "模型实例id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "modeltypeid",
|
|
"title": "模型类型id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "enable_date",
|
|
"title": "开始日期",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"name": "expired_date",
|
|
"title": "失效日期",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"name": "pricing_mode",
|
|
"title": "计费类型",
|
|
"type": "str",
|
|
"length": 30
|
|
},
|
|
{
|
|
"name": "token_cnt",
|
|
"title": "token数量",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "input_price",
|
|
"title": "输入价格",
|
|
"type": "float",
|
|
"length": 18,
|
|
"dec": 2
|
|
},
|
|
{
|
|
"name": "output_price",
|
|
"title": "输出价格",
|
|
"type": "float",
|
|
"length": 18,
|
|
"dec": 2
|
|
},
|
|
{
|
|
"name": "timing_price",
|
|
"title": "计次价格",
|
|
"type": "float",
|
|
"length": 18,
|
|
"dec": 2
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "pricing_mode",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='pricing_mode'"
|
|
},
|
|
{
|
|
"field": "modelinstanceid",
|
|
"table": "modelinstance",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "modeltypeid",
|
|
"table": "modeltype",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
}
|
|
]
|
|
} |