Commit 00448ef
fix: add timeout parameter to OpenAIVLM client (#1208)
Problem:
- OpenAI Python SDK uses DEFAULT_TIMEOUT with connect=5.0 seconds
- Some API endpoints (like DashScope) require >5s to establish connection
- This causes ConnectTimeout errors with retries, taking ~15-16 seconds
Solution:
- Add timeout parameter (default=60.0) to _build_openai_client_kwargs
- Pass timeout to both Azure and non-Azure OpenAI client constructors
Fixes VLM timeout issues when connecting to slow-response endpoints.
Co-authored-by: OpenClaw Bot <bot@openclaw.ai>1 parent 6e5d125 commit 00448ef
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
0 commit comments