Configure AI providers, system prompt, and field ordering for document analysis.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "用简洁中文概括这张账单,例如“北京急救中心救护车发票”或“Amazon 广告费账单”。"
},
"description": {
"type": "string",
"description": "交易或账单的简短描述。"
},
"merchant": {
"type": "string",
"description": "商户、开票单位、收款单位、付款单位或平台名称,保留原始语言。"
},
"issuedAt": {
"type": "string",
"description": "账单、发票、就诊、交易或扣款日期,格式 YYYY-MM-DD。"
},
"projectCode": {
"type": "string",
"description": "项目 code,只能从这些项目中选择:{projects.code}"
},
"categoryCode": {
"type": "string",
"description": "分类 code,只能从这些分类中选择:{categories.code}"
},
"total": {
"type": "number",
"description": "账单总金额,单位为原币,不要乘以 100。"
},
"currencyCode": {
"type": "string",
"description": "币种 ISO 4217 三位代码,例如 CNY、USD、EUR、GBP、JPY、HKD。"
},
"convertedTotal": {
"type": "number",
"description": "通常留空,由系统按账单日期自动换算。"
},
"convertedCurrencyCode": {
"type": "string",
"description": "通常留空,由系统按默认币种自动填写。"
},
"type": {
"type": "string",
"description": "支出填 expense,收入填 income。"
},
"note": {
"type": "string",
"description": "可记录票据号、流水号、订单号、平台订单号、医保支付信息、其他金额明细等。"
},
"vat_rate": {
"type": "number",
"description": "税率,0-100 之间的数字;没有则留空。"
},
"vat": {
"type": "number",
"description": "税额;没有则留空。"
},
"text": {
"type": "string",
"description": "从票据中识别出的关键原文摘要。"
},
"items": {
"type": "array",
"description": "Separate items, products or transactions in the file which have own name and price or sum. Find all items!",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "用简洁中文概括这张账单,例如“北京急救中心救护车发票”或“Amazon 广告费账单”。"
},
"description": {
"type": "string",
"description": "交易或账单的简短描述。"
},
"merchant": {
"type": "string",
"description": "商户、开票单位、收款单位、付款单位或平台名称,保留原始语言。"
},
"issuedAt": {
"type": "string",
"description": "账单、发票、就诊、交易或扣款日期,格式 YYYY-MM-DD。"
},
"projectCode": {
"type": "string",
"description": "项目 code,只能从这些项目中选择:{projects.code}"
},
"categoryCode": {
"type": "string",
"description": "分类 code,只能从这些分类中选择:{categories.code}"
},
"total": {
"type": "number",
"description": "账单总金额,单位为原币,不要乘以 100。"
},
"currencyCode": {
"type": "string",
"description": "币种 ISO 4217 三位代码,例如 CNY、USD、EUR、GBP、JPY、HKD。"
},
"convertedTotal": {
"type": "number",
"description": "通常留空,由系统按账单日期自动换算。"
},
"convertedCurrencyCode": {
"type": "string",
"description": "通常留空,由系统按默认币种自动填写。"
},
"type": {
"type": "string",
"description": "支出填 expense,收入填 income。"
},
"note": {
"type": "string",
"description": "可记录票据号、流水号、订单号、平台订单号、医保支付信息、其他金额明细等。"
},
"vat_rate": {
"type": "number",
"description": "税率,0-100 之间的数字;没有则留空。"
},
"vat": {
"type": "number",
"description": "税额;没有则留空。"
},
"text": {
"type": "string",
"description": "从票据中识别出的关键原文摘要。"
}
},
"required": [
"name",
"description",
"merchant",
"issuedAt",
"projectCode",
"categoryCode",
"total",
"currencyCode",
"convertedTotal",
"convertedCurrencyCode",
"type",
"note",
"vat_rate",
"vat",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"name",
"description",
"merchant",
"issuedAt",
"projectCode",
"categoryCode",
"total",
"currencyCode",
"convertedTotal",
"convertedCurrencyCode",
"type",
"note",
"vat_rate",
"vat",
"text",
"items"
],
"additionalProperties": false
}