57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
|
|
runtime: node
|
|||
|
|
entrypoint: scripts/index.cjs
|
|||
|
|
timeout: 90000
|
|||
|
|
|
|||
|
|
dependencies:
|
|||
|
|
system:
|
|||
|
|
- name: node
|
|||
|
|
check: "node --version"
|
|||
|
|
|
|||
|
|
interface:
|
|||
|
|
input:
|
|||
|
|
imageUrl:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: 发票图片URL,给多模态模型查看
|
|||
|
|
imageBase64:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: 发票图片base64,给多模态模型查看
|
|||
|
|
pdfUrl:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: 发票PDF URL,给多模态模型查看
|
|||
|
|
pdfBase64:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: 发票PDF base64,给多模态模型查看
|
|||
|
|
modelResult:
|
|||
|
|
type: object
|
|||
|
|
required: false
|
|||
|
|
description: 多模态模型识别后的JSON对象或JSON字符串
|
|||
|
|
ocrResult:
|
|||
|
|
type: object
|
|||
|
|
required: false
|
|||
|
|
description: modelResult别名
|
|||
|
|
mockResult:
|
|||
|
|
type: object
|
|||
|
|
required: false
|
|||
|
|
description: 联调用JSON对象或JSON字符串
|
|||
|
|
fields:
|
|||
|
|
type: object
|
|||
|
|
required: false
|
|||
|
|
description: 已识别字段对象
|
|||
|
|
output:
|
|||
|
|
success:
|
|||
|
|
type: boolean
|
|||
|
|
needsModelVision:
|
|||
|
|
type: boolean
|
|||
|
|
fields:
|
|||
|
|
type: object
|
|||
|
|
raw:
|
|||
|
|
type: object
|
|||
|
|
prompt:
|
|||
|
|
type: string
|
|||
|
|
error:
|
|||
|
|
type: string
|