Files
codex/codex-rs/core/src
sayan-oai 378f1cabe8 go back to auto-enabling web_search for azure (#10820)
###### What
Remove special-casing that prevented auto-enabling `web_search` for
Azure model provider users. Addresses #10071, #10257.

###### Why
Azure fixed their responsesapi implementation; `web_search` is now
supported on models it wasn't before (like `gpt-5.1-codex-max`).

This request now works:
```
curl "$AZURE_API_ENDPOINT" -H "Content-Type: application/json" -H "Authorization: Bearer $AZURE_API_KEY" -d '{
  "model": "gpt-5.1-codex-max",
  "tools": [
    { "type": "web_search" }
  ],
  "tool_choice": "auto",
  "input": "Find the sunrise time in Paris today and cite the source."
}'
```

###### Tests
Tested with above curl, removed Azure-specific tests.
2026-02-05 14:57:07 -08:00
..
2026-01-27 11:04:23 -08:00
2026-01-28 15:29:14 +01:00
2026-02-03 14:58:33 +00:00
2026-02-05 16:16:31 +00:00
2026-02-02 16:57:29 -08:00
2025-11-28 11:34:57 +00:00
2026-01-27 11:04:23 -08:00
2026-01-19 11:35:34 +00:00