Repository navigation
v7.2.0
这个版本新增「联网搜索」插件类型,让本身不支持联网搜索的模型也能通过订阅或厂商搜索 API 接管 Claude Code 的联网搜索请求;同时重做「自定义虚拟模型」页面、为规则插件补充工具条件与「联网搜索」请求用途、标注厂商原生联网搜索能力,并修复翻译类上游误转发 Anthropic 内置工具的问题。升级后默认行为不变,联网搜索插件安装后默认停用。
新功能
- 联网搜索插件(安装后默认停用):新增「联网搜索」插件类型,启用后自动接管 Claude Code 的联网搜索请求,让不支持原生联网搜索的主力模型也能完成搜索。
- 支持「调用厂商搜索 API」与「转交模型在服务端搜索」(可选关闭思考以降低耗时与开销)两种搜索方式,附带 DeepSeek 联网搜索、Kimi 联网搜索及自选模型联网搜索示例;API Key 仅取自所选订阅,且只会发往该订阅对应厂商的域名,域名不匹配时拒绝发送。
- 每个已安装插件会以
model-前缀的卡片展示在「虚拟模型 → 自定义虚拟模型」页,支持按来源筛选;在插件设置中可选择订阅、下拉选模型并刷新模型列表,也可点击「测试搜索」验证可用性。
- 自定义虚拟模型界面重做:「虚拟模型」页顶部改为带图标与数量的「内置虚拟模型」/「自定义虚拟模型」居中切换栏,自定义虚拟模型改为卡片视图,展示有序线路链、实时可用状态、今日请求数与成功率,并支持搜索筛选与复制、编辑、删除。
- 编辑器固定
model-前缀并提供实时格式校验,改为调度模式卡片与左侧手柄拖动排序线路,新增「请求会怎么走」实时路由预览。
- 编辑器固定
- 规则插件工具条件与「联网搜索」请求用途(#89):规则插件新增基于工具信息的匹配条件(
tool_type、tool_offered、tool_forced、prev_tool),使用新条件或搜索用途的插件需声明rulesApi2;同时在「实时路由」与「数据统计」中新增「联网搜索」请求用途分类,并在规则「试运行」中支持评估工具类型。 - 厂商原生联网搜索能力声明:厂商描述新增
server_tools能力标记(限 Anthropic 透传类厂商),内置 Anthropic 与 DeepSeek 已声明原生服务端web_search;DeepSeek 同时附带四语兼容性说明,注明服务端执行不另收搜索费,且会忽略allowed_domains与blocked_domains。
修复
- 翻译类上游转发 Anthropic 内置工具导致异常:修复向非 Anthropic 翻译类上游(Codex、OpenAI、Gemini、Kiro、Chat Completions)转发请求时,将
web_search_*等 Anthropic 内置工具当作空参数函数传递、导致模型调用客户端不存在的工具的问题;现在会自动过滤这类内置工具,并避免发送指向已过滤工具的tool_choice。
繁體中文
這個版本新增「聯網搜尋」外掛類型,讓本身不支援聯網搜尋的模型也能透過訂閱或廠商搜尋 API 接管 Claude Code 的聯網搜尋請求;同時重做「自訂虛擬模型」頁面、為規則外掛補充工具條件與「聯網搜尋」請求用途、標註廠商原生聯網搜尋能力,並修正翻譯類上游誤轉發 Anthropic 內建工具的問題。升級後預設行為不變,聯網搜尋外掛安裝後預設停用。
新功能
- 聯網搜尋外掛(安裝後預設停用):新增「聯網搜尋」外掛類型,啟用後自動接管 Claude Code 的聯網搜尋請求,讓不支援原生聯網搜尋的主力模型也能完成搜尋。
- 支援「呼叫廠商搜尋 API」與「轉交模型在伺服器端搜尋」(可選關閉思考以降低耗時與開銷)兩種搜尋方式,附帶 DeepSeek 聯網搜尋、Kimi 聯網搜尋及自選模型聯網搜尋範例;API Key 僅取自所選訂閱,且只會送往該訂閱對應廠商的網域,網域不符時拒絕傳送。
- 每個已安裝外掛會以
model-前綴的卡片顯示在「虛擬模型 → 自訂虛擬模型」頁,支援依來源篩選;在外掛設定中可選擇訂閱、下拉選模型並重新整理模型清單,也可點擊「測試搜尋」驗證可用性。
- 自訂虛擬模型介面重做:「虛擬模型」頁頂部改為帶圖示與數量的「內建虛擬模型」/「自訂虛擬模型」置中切換列,自訂虛擬模型改為卡片檢視,顯示有序路由鏈、即時可用狀態、今日請求數與成功率,並支援搜尋篩選與複製、編輯、刪除。
- 編輯器固定
model-前綴並提供即時格式檢查,改為調度模式卡片與左側把手拖曳排序路由,新增「請求會怎麼走」即時路由預覽。
- 編輯器固定
- 規則外掛工具條件與「聯網搜尋」請求用途(#89):規則外掛新增基於工具資訊的符合條件(
tool_type、tool_offered、tool_forced、prev_tool),使用新條件或搜尋用途的外掛需宣告rulesApi2;同時在「即時路由」與「資料統計」中新增「聯網搜尋」請求用途分類,並在規則「試執行」中支援評估工具類型。 - 廠商原生聯網搜尋能力宣告:廠商描述新增
server_tools能力標記(限 Anthropic 透傳類廠商),內建 Anthropic 與 DeepSeek 已宣告原生伺服器端web_search;DeepSeek 同時附帶四語相容性說明,註明伺服器端執行不另收搜尋費,且會忽略allowed_domains與blocked_domains。
修正
- 翻譯類上游轉發 Anthropic 內建工具導致異常:修正向非 Anthropic 翻譯類上游(Codex、OpenAI、Gemini、Kiro、Chat Completions)轉發請求時,將
web_search_*等 Anthropic 內建工具當作空參數函式傳遞、導致模型呼叫用戶端不存在的工具的問題;現在會自動過濾這類內建工具,並避免傳送指向已過濾工具的tool_choice。
English
This release introduces the Web search plugin type so models without native web search can fulfill Claude Code web search requests through your subscriptions or provider Search APIs. It also redesigns the Custom virtual models view, adds tool conditions and the Web search request purpose to Rules plugins, declares native server-side web search on providers, and stops forwarding Anthropic built-in tools to translated upstreams. Default behavior stays unchanged on upgrade, and web search plugins start disabled after installation.
Features
- Web search plugins (disabled by default): Adds a "Web search" plugin type that takes over Claude Code web search requests once enabled, letting models without native search query the web.
- Supports both "Calls the provider's Search API" and "Hands off to a model that searches server-side" (with an option to turn off thinking for faster, cheaper searches), accompanied by DeepSeek web search, Kimi web search, and model-choice web search examples; API keys are taken solely from the chosen subscription and only ever sent to that subscription's own provider host, refusing mismatched hosts.
- Each installed plugin appears as a
model--prefixed card under Virtual models → Custom virtual models with source filtering; plugin settings let you choose a subscription, pick a model from a searchable dropdown with list refresh, and verify setup with "Test search".
- Redesigned Custom virtual models UI: Replaces the Virtual models header switcher with a centered "Built-in virtual models" / "Custom virtual models" tab bar with icons and counts, and presents custom virtual models as cards showing ordered target chains, live availability, today's requests and success rate, plus search filtering and copy, edit, and delete actions.
- The editor locks the
model-prefix with live format validation, adds dispatch mode cards and drag-handle reordering for targets, and includes a live "Where requests go" routing preview.
- The editor locks the
- Rules plugin tool conditions and Web search purpose (#89): Adds tool-based rule conditions (
tool_type,tool_offered,tool_forced,prev_tool) requiringrulesApi2 when used alongside or for the new search purpose; adds the "Web search" request purpose in Live routing and Statistics, and evaluates tool types during rules "Dry run". - Native provider web search capability: Adds the
server_toolscapability field to provider descriptors (for Anthropic passthrough providers), marking built-in Anthropic and DeepSeek as natively supporting server-sideweb_search; DeepSeek also includes localized compatibility notes explaining that server-side search incurs no separate search fee and ignoresallowed_domainsandblocked_domains.
Fixes
- Anthropic built-in tools forwarded to translated upstreams: Fixes an issue where translated upstreams (Codex, OpenAI, Gemini, Kiro, and Chat Completions) received Anthropic built-in tools such as
web_search_*as empty-schema functions, causing models to emit tool calls the client does not have; these built-in tools are now dropped automatically, andtool_choicevalues targeting dropped tools are no longer sent.
日本語
このバージョンでは、Web 検索非対応のモデルでもサブスクリプションやプロバイダーの検索 API を通じて Claude Code の Web 検索リクエストを処理できる「Web 検索」プラグイン種別を追加しました。あわせて、カスタム仮想モデル画面の刷新、ルールプラグインのツール条件と「Web 検索」用途分類の追加、プロバイダーのネイティブ Web 検索対応の宣言、変換系アップストリームへの Anthropic 組み込みツール転送の修正を行っています。アップデート後の既定動作は変わらず、Web 検索プラグインはインストール直後は無効です。
新機能
- Web 検索プラグイン(インストール直後は無効):有効にすると Claude Code の Web 検索リクエストを自動で引き受ける「Web 検索」プラグイン種別を追加し、ネイティブ検索に非対応のメインモデルでも検索できるようにしました。
- 「プロバイダーの検索 API を呼び出す」と「サーバー側で検索するモデルに渡す」(高速化・節約のため思考オフを選択可能)の 2 方式に対応し、DeepSeek Web 検索・Kimi Web 検索・選んだモデルで Web 検索のサンプルを用意しています。API キーは選択したサブスクリプションのみから取得し、そのサブスクリプション自身のプロバイダーのホスト以外には送信を拒否します。
- インストール済みの各プラグインは「仮想モデル → カスタム仮想モデル」に
model-接頭辞付きのカードとして表示され、作成元で絞り込めます。プラグイン設定ではサブスクリプション選択、モデル一覧の更新付きドロップダウン選択、「検索をテスト」による動作確認ができます。
- カスタム仮想モデル画面の刷新:「仮想モデル」上部にアイコン・件数付きの「組み込み仮想モデル」/「カスタム仮想モデル」中央切替タブを配置し、カスタム仮想モデルをカード一覧に刷新しました。優先順のルート構成・リアルタイムの稼働状態・本日のリクエスト数と成功率を表示し、検索絞り込みやコピー・編集・削除に対応します。
- 編集画面では
model-接頭辞を固定してリアルタイム形式チェックを行い、ディスパッチモードカード、左ハンドルでのドラッグ並べ替え、リアルタイムの「リクエストの行き先」プレビューを追加しました。
- 編集画面では
- ルールプラグインのツール条件と「Web 検索」リクエスト用途 (#89):ルールプラグインにツール情報ベースの条件(
tool_type・tool_offered・tool_forced・prev_tool)を追加しました(新条件または検索用途を使うプラグインはrulesApi2 の宣言が必要)。あわせて「リアルタイムルーティング」と「統計」に「Web 検索」の用途分類を追加し、ルールの「テスト実行」でもツール種別を評価できます。 - プロバイダーのネイティブ Web 検索対応宣言:プロバイダー記述に
server_tools機能フラグ(Anthropic パススルー系のみ)を追加し、内蔵の Anthropic と DeepSeek でサーバー側web_searchのネイティブ対応を宣言しました。DeepSeek には、サーバー側実行で検索料金が別途かからない点とallowed_domains・blocked_domainsが無視される点を 4 言語の互換性メモとして記載しています。
修正
- 変換系アップストリームへ Anthropic 組み込みツールが転送される不具合:非 Anthropic の変換系アップストリーム(Codex・OpenAI・Gemini・Kiro・Chat Completions)にリクエストを送る際、
web_search_*などの Anthropic 組み込みツールが空スキーマの関数として渡され、クライアントに存在しないツールをモデルが呼び出してしまう問題を修正しました。これらの組み込みツールは自動で除外され、除外されたツールを指すtool_choiceも送信しないようにしました。