72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
|
|
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)\""
|
|||
|
|
|
|||
|
|
env:
|
|||
|
|
- 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_DETECT_MODEL
|
|||
|
|
required: false
|
|||
|
|
default: doubao-seed-2-0-pro-260215
|
|||
|
|
- name: VEHICLE_SCRATCH_WORKSPACE_ROOT
|
|||
|
|
required: false
|
|||
|
|
description: 共享环车检测 workspace 根目录
|
|||
|
|
- name: RZYX_AI_DATA_DIR
|
|||
|
|
required: false
|
|||
|
|
- name: RZYX_AI_WORKSPACE_ROOT
|
|||
|
|
required: false
|
|||
|
|
description: AIflow workspace根目录;未包含vehicle-scratch-inspection时会自动追加子目录
|
|||
|
|
- name: RZYX_AI_UPLOAD_ROOT
|
|||
|
|
required: false
|
|||
|
|
|
|||
|
|
interface:
|
|||
|
|
input:
|
|||
|
|
taskId:
|
|||
|
|
type: string
|
|||
|
|
required: true
|
|||
|
|
description: video-frame-extractor返回的taskId
|
|||
|
|
batchSize:
|
|||
|
|
type: number
|
|||
|
|
required: false
|
|||
|
|
default: "50"
|
|||
|
|
batchDelay:
|
|||
|
|
type: number
|
|||
|
|
required: false
|
|||
|
|
default: "2"
|
|||
|
|
concurrency:
|
|||
|
|
type: number
|
|||
|
|
required: false
|
|||
|
|
default: "5"
|
|||
|
|
modelResult:
|
|||
|
|
type: object
|
|||
|
|
required: false
|
|||
|
|
description: 外部多模态模型返回的单个或多个批次JSON
|
|||
|
|
batchResults:
|
|||
|
|
type: array
|
|||
|
|
required: false
|
|||
|
|
description: 外部多模态模型返回的批次数组
|
|||
|
|
output:
|
|||
|
|
success:
|
|||
|
|
type: boolean
|
|||
|
|
needsModelVision:
|
|||
|
|
type: boolean
|
|||
|
|
damagesFound:
|
|||
|
|
type: number
|
|||
|
|
totalBatches:
|
|||
|
|
type: number
|
|||
|
|
successBatches:
|
|||
|
|
type: number
|
|||
|
|
vehicleInfo:
|
|||
|
|
type: object
|
|||
|
|
error:
|
|||
|
|
type: string
|