2026-05-20 21:39:12 +08:00

60 lines
1.2 KiB
YAML
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.

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