Files
codewhale/crates
Implementist 45787bcf70 fix(web_search): improve Volcengine reliability — 90 s timeout, retry, and faster model (#2439)
* fix(web_search): add timeout floor and retry for Volcengine provider

Volcengine's Responses API pipeline (web search + model inference +
JSON generation) can exceed the default 15 s timeout on complex
queries, causing ~50% of requests to fail with transport errors.

Changes:
- Enforce a 60 s minimum timeout for the Volcengine provider
- Separate connect_timeout (15 s) from total request timeout
- Retry transient transport errors up to 3 times (1 s / 2 s backoff)
- Add TCP keepalive, HTTP/2 keepalive, and User-Agent headers
  matching the patterns used in client.rs

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: raise Volcengine timeout floor to 90 s

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: correct stale comment — floor is 90 s, not 60 s

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(web_search): tighten Volcengine retry semantics

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hunter B <hmbown@gmail.com>
2026-05-31 11:01:34 -07:00
..