Files
wuzhenyu bdeaac7591 fix(proxy): support Codex Alpha Search and Claude hosted WebSearch (#5681)
Two independent web-search paths behind the CC Switch local proxy:

- Register POST /alpha/search and its local aliases as a semantic passthrough
  to the selected Codex provider, reusing provider selection, model mapping,
  auth, retry/failover, and logging. Full-URL providers derive the sibling
  /alpha/search endpoint only from unambiguous /responses URLs and fail
  closed otherwise.
- Bridge Claude Code's hosted WebSearch tool onto OpenAI Responses and the
  Codex OAuth backend: request translation with fail-closed semantics for
  unrepresentable constraints (blocked_domains, non-direct callers,
  response_inclusion, unverified versions), paired server_tool_use /
  web_search_tool_result blocks, citation preservation, max_uses enforcement,
  multi-turn replay, and usage.server_tool_use.web_search_requests.

Fixes #5363
Fixes #5378

Co-authored-by: zhuanzhi <zaz92537@126.com>
2026-08-16 20:56:37 +08:00
..