You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9484c52
Browse filesBrowse the repository at this point in the historyBrowse files
Per-request-type read timeouts: GET 30s, submit 60s, upload 120s
Config.api.readTimeoutGet/Submit/Upload (env WAVESPEED_READ_TIMEOUT_GET/
_SUBMIT/_UPLOAD) replace the single 120s default. Config.api.readTimeout
(WAVESPEED_READ_TIMEOUT, null default) overrides the three but never sync
submit, which keeps no default timeout. The file PUT still has no call
timeout. Explicit timeout semantics are unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,10 @@ Global configuration via `Config.api`:
81
81
-`baseUrl` - API base URL (default: https://api.wavespeed.ai)
82
82
-`connectionTimeout` - Connection timeout in seconds (default: 10.0)
83
83
-`timeout` - Overall wait limit in seconds (default: null = no limit; tasks may run for hours). When set, it also bounds each request
84
-
-`readTimeout` - Read/call timeout of one async submit or result request when `timeout` is unset (default: 120.0; sync-mode submit has none). File upload requests use the same read timeout (the file PUT has no total-transfer deadline)
84
+
-`readTimeoutGet` - Read/call timeout of one result query/GET when `timeout` is unset (default: 30.0)
85
+
-`readTimeoutSubmit` - Same for the async submit POST (default: 60.0; a submit timeout is ambiguous, so more headroom)
86
+
-`readTimeoutUpload` - Read timeout of each upload request, ticket and file PUT (default: 120.0; the file PUT has no total-transfer deadline)
87
+
-`readTimeout` - Optional single override (default: null) replacing the three above; never applies to sync-mode submit, which has no default timeout
for (intretry = 0; retry <= maxConnectionRetries; retry++) {
394
408
try {
@@ -699,7 +713,7 @@ public Map<String, Object> run(String model, Map<String, Object> input, double t
699
713
* Upload a file to WaveSpeed.
700
714
*
701
715
* @param file File path string to upload
702
-
* @param timeout Request timeout in seconds (null = Config.api.timeout; default: 120s read timeout per request, no total-transfer limit on the file PUT)
716
+
* @param timeout Request timeout in seconds (null = Config.api.timeout; default: per-type read timeout, 120s for uploads with no total-transfer limit on the file PUT)
703
717
* @return URL of the uploaded file
704
718
* @throws IllegalArgumentException if API key is not configured
705
719
* @throws IllegalArgumentException if file path does not exist
0 commit comments