Anthropic non-streaming create with max_tokens 21334 raises 'Streaming is required for operations that may take longer than 10 minutes' (Python ValueError, JS AnthropicError)
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). messages.create(max_tokens=21333) went through (x-stainless-timeout: 600) but max_tokens=21334 and 128000 raised before any request was sent. Python: ValueError: Streaming is required for operations that may take longer than 10 minutes. See https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/python#long-requests for more details. JS: AnthropicError with the same text and a typescript#long-requests link. The check is client-side from max_tokens with the default timeout; use messages.stream() for big outputs (passing an explicit timeout to bypass it was not tested).