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

67 lines
1.7 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: 1800000
dependencies:
system:
- name: node
check: "node -e \"process.exit(Number(process.versions.node.split('.')[0])>=18?0:1)\""
node:
packages:
- sharp
- "@ffmpeg-installer/ffmpeg"
- "@ffprobe-installer/ffprobe"
setup:
posix: scripts/make.sh fix
win32: scripts/setup.ps1
env:
- name: FFMPEG_PATH
required: false
description: sharp不可用时用于drawbox回退的ffmpeg路径
- name: FFPROBE_PATH
required: false
description: sharp不可用时读取图片尺寸的ffprobe路径
- name: ARK_API_KEY
required: false
description: 火山方舟/豆包 OpenAI-compatible API Key未配置时返回needsModelVision
- name: ARK_API_URL
required: false
default: https://ark.cn-beijing.volces.com/api/v3/chat/completions
- name: DAMAGE_GROUNDING_MODEL
required: false
default: doubao-seed-2-0-pro-260215
- name: VEHICLE_SCRATCH_WORKSPACE_ROOT
required: false
- name: RZYX_AI_DATA_DIR
required: false
- name: RZYX_AI_WORKSPACE_ROOT
required: false
description: AIflow workspace根目录未包含vehicle-scratch-inspection时会自动追加子目录
interface:
input:
taskId:
type: string
required: true
groundingWindow:
type: number
required: false
default: "2"
groundingResults:
type: object
required: false
description: 外部豆包grounding返回结果可为数组或对象
output:
success:
type: boolean
needsModelVision:
type: boolean
totalDamages:
type: number
totalMarked:
type: number
error:
type: string