mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-29 02:01:50 +08:00
bdeaac7591
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>