fix: add 60s timeout to MiniMax VLM fetch call

The VLM image analysis fetch had no timeout, causing sessions to hang
indefinitely when the MiniMax API is slow or unresponsive. Other
vision/model API calls in the codebase already use timeouts. Adds
AbortSignal.timeout(60_000) consistent with image upload workloads.

Fixes #54139
This commit is contained in:
Jasmine Zhang
2026-03-25 09:37:58 +08:00
committed by Peter Steinberger
parent 39bcf695dc
commit b838ecf885

View File

@@ -85,6 +85,7 @@ export async function minimaxUnderstandImage(params: {
"Content-Type": "application/json",
"MM-API-Source": "OpenClaw",
},
signal: AbortSignal.timeout(60_000),
body: JSON.stringify({
prompt,
image_url: imageDataUrl,