Skip to content

fix(image): bump default timeout 120s -> 200s to match server cap (1.10.1)#2

Merged
1bcMax merged 1 commit intomainfrom
fix/image-client-default-timeout-200s
Apr 25, 2026
Merged

fix(image): bump default timeout 120s -> 200s to match server cap (1.10.1)#2
1bcMax merged 1 commit intomainfrom
fix/image-client-default-timeout-200s

Conversation

@1bcMax
Copy link
Copy Markdown
Contributor

@1bcMax 1bcMax commented Apr 25, 2026

Summary

The gateway's per-call OpenAI timeout for gpt-image-2 was raised to 180s server-side (BlockRunAI/blockrun#4) because OpenAI routinely takes 120–180s at 1536×1024+. The SDK's old 120s default was cutting the request before the server had a chance to return.

Change

  • DEFAULT_TIMEOUT = 200000 (was 120000)
  • ~20s of buffer above the server's 180s cap
  • Comment updated, CHANGELOG entry added
  • Version 1.10.0 → 1.10.1

Compatibility

Pure default-value bump. Existing callers passing an explicit timeout option are unaffected.

Test plan

  • npx vitest run101 passed / 0 failed / 12 skipped
  • tsc --noEmit — no type errors

The gateway's per-call OpenAI timeout for gpt-image-2 was raised to 180s
server-side (it routinely takes ~120-180s at 1536x1024 and larger).
The SDK's old 120s default was cutting the request before the server
had a chance to return.

New default leaves ~20s of buffer above the server's 180s cap. Existing
users passing an explicit timeout option are unaffected.

Bumps to 1.10.1.
@1bcMax 1bcMax merged commit d91b405 into main Apr 25, 2026
3 checks passed
@1bcMax 1bcMax deleted the fix/image-client-default-timeout-200s branch April 25, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant