mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-21 05:32:53 +00:00
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:
committed by
Peter Steinberger
parent
39bcf695dc
commit
b838ecf885
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user