60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
|
|
runtime: node
|
|||
|
|
entrypoint: scripts/index.cjs
|
|||
|
|
timeout: 60000
|
|||
|
|
|
|||
|
|
dependencies:
|
|||
|
|
system:
|
|||
|
|
- name: node
|
|||
|
|
check: "node --version"
|
|||
|
|
|
|||
|
|
interface:
|
|||
|
|
input:
|
|||
|
|
imageUrl:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: 身份证图片URL,给多模态模型查看
|
|||
|
|
imageBase64:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: 身份证图片base64,支持data URL前缀,给多模态模型查看
|
|||
|
|
side:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
default: front
|
|||
|
|
description: front或back
|
|||
|
|
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
|
|||
|
|
side:
|
|||
|
|
type: string
|
|||
|
|
fields:
|
|||
|
|
type: object
|
|||
|
|
quality:
|
|||
|
|
type: object
|
|||
|
|
risk:
|
|||
|
|
type: object
|
|||
|
|
raw:
|
|||
|
|
type: object
|
|||
|
|
prompt:
|
|||
|
|
type: string
|
|||
|
|
error:
|
|||
|
|
type: string
|