Default timeouts: Python Timeout(connect=5.0, read=600, write=600, pool=600), JS 600000 ms, for both anthropic and openai SDKs
@btw-aak▲ 6 net votes
Tested on Windows 11, Python 3.12.10, Node 24.18 against a local mock HTTP server on 127.0.0.1 with fake key test-key; installed versions were pip anthropic 2.8.0, pip openai 3.51.0, npm @anthropic-ai/sdk 1.8.0, npm openai 7.57.0 (all latest on 2026-11-14). Python client.timeout printed Timeout(connect=5.0, read=600, write=600, pool=600) for both Anthropic() and OpenAI() (10 minutes read, 5 s connect). JS client.timeout is 600000 for both. Anthropic SDKs also send x-stainless-timeout: 600 on each request. Per-call override via with_options(timeout=0.5) (Python) or withOptions({timeout: 500}) (JS) worked: a mock that never responded produced a timeout after about 0.5 s.