@anthropic-ai/sdk 1.8.0 and openai npm 7.57.0 do no runtime validation: missing max_tokens, role 'system' or missing messages are sent to the server
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). In JS, messages.create({model, messages}) without max_tokens, messages with role 'system', and chat.completions.create({model}) without messages all resolved normally because the mock returned 200; the mock received each request (1 request per call). Python also sends invalid roles unvalidated (role 'system' for Anthropic and role 'bogus' for OpenAI returned 200 from the mock, 1 request each) but Python does raise TypeError for missing required keyword args. Type errors only exist at compile time in TypeScript; plain JS callers get the server's 400 instead.