Context7 vs Web Search vs No Docs: 12 Claude Code Runs on openai 3.x A developer ran a controlled comparison of four documentation strategies for Claude Code across 12 runs generating a script against the OpenAI Python SDK 3.x, finding that runs without docs failed 3 out of 3 times with ModuleNotFoundError for httpx, while Context7 MCP and web search each passed 3 out of 3. Context7 runs averaged about 38-43 seconds and $0.34-0.37 per run versus 70 seconds and $0.48 for web search, and the agent invoked Context7 on its own in all three runs where the prompt never mentioned it. ModuleNotFoundError: No module named 'httpx' That's what three out of three Claude Code runs produced when I asked for a small script on the current OpenAI Python SDK. The code was clean and typed. It just targeted an SDK that no longer exists. So I set up a controlled comparison. Same task, same model, same prompt, and four ways for the agent to get documentation. Then I ran every generated script against the real OpenAI API. Everything below is reproducible, and the last section shows you how. | Setup | Worked on openai 3.60 | Avg time | Avg cost | |---|---|---|---| | No docs | 0 / 3 | 28 s | $0.24 | | Context7 MCP | 3 / 3 | 38 s | $0.37 | | Context7 + "use context7" | 3 / 3 | 43 s | $0.34 | | Web search + fetch | 3 / 3 | 70 s | $0.48 | openai 3.0 August 12, 2026 moved the SDK from httpx to HTTPX2 , and httpx is no longer a dependency https://github.com/openai/openai-python/blob/main/httpx2.md . Anything that builds a custom HTTP client is affected: proxies, granular timeouts, transports, mocks. Write triage.py. Read tickets.csv id, text , ask OpenAI to classify each ticket billing, bug, feature request, other with a one-sentence reason, write triaged.csv. - openai SDK pinned to =3.60,<4. Make sure the code is correct for this version. - Model: gpt-5.4-mini - All traffic through the corporate proxy in CORP PROXY - 5 s connect timeout, 30 s read timeout - Structured output, no regex parsing Only write the files. Don't install packages or call the API. All three no-docs runs reached for the client they remembered: python import httpx http client = httpx.Client proxy=proxy, timeout=httpx.Timeout 30.0, connect=5.0 , return OpenAI http client=http client, max retries=0 Traceback most recent call last : File "triage.py", line 6, in