{"id":1739,"date":"2026-06-11T16:59:15","date_gmt":"2026-06-11T08:59:15","guid":{"rendered":"https:\/\/www.imaseo.com\/blog\/?p=1739"},"modified":"2026-06-02T16:17:43","modified_gmt":"2026-06-02T08:17:43","slug":"ccswitch-codex-model-switch-bridge","status":"publish","type":"post","link":"https:\/\/www.imaseo.com\/blog\/ai-tools\/ccswitch-codex-model-switch-bridge","title":{"rendered":"ccswitch \u8bf4\u5207\u4e86 ccx \u5374\u6ca1\u52a8\uff1f\u600e\u4e48\u7ed9 Codex \u56fd\u4ea7\u6a21\u578b\u5207\u6362\u9020\u4e00\u5ea7\u6865\uff1f"},"content":{"rendered":"<h1>ccswitch \u8bf4\u5207\u4e86\uff0cccx \u5374\u6ca1\u52a8\uff1f\u600e\u4e48\u7ed9 Codex \u56fd\u4ea7\u6a21\u578b\u5207\u6362\u9020\u4e00\u5ea7\u6865\uff1f<\/h1>\n<h2>\u4e3a\u4ec0\u4e48 ccswitch \u5207\u6362\u540e\u6d41\u91cf\u5374\u6ca1\u52a8\uff1f<\/h2>\n<p>\u5f88\u591a\u7528\u6237\u5728 Codex \u4e2d\u914d\u7f6e\u56fd\u4ea7\u6a21\u578b\u65f6\uff0c\u4f1a\u9047\u5230\u8fd9\u6837\u4e00\u4e2a\u201c\u8be1\u5f02\u201d\u73b0\u8c61\uff1a\u7528 ccswitch \u628a\u6a21\u578b\u5207\u5230 deepseek\u3001qwen \u7b49\u56fd\u4ea7\u6a21\u578b\u540e\uff0cccx \u7684\u8bf7\u6c42\u6d41\u91cf\u5374\u4ecd\u7136\u6307\u5411\u539f\u6765\u7684\u9ed8\u8ba4\u901a\u9053\u3002\u8868\u9762\u4e0a\u770b ccswitch \u5df2\u7ecf\u66f4\u65b0\u4e86 model \u5b57\u6bb5\uff0c\u4f46\u5b9e\u9645\u4e0a ccx \u7684\u8def\u7531\u4f18\u5148\u7ea7\u7eb9\u4e1d\u4e0d\u52a8\u3002<\/p>\n<p>\u7a76\u5176\u539f\u56e0\uff0cccswitch \u4fee\u6539\u7684\u662f Codex \u914d\u7f6e\u6587\u4ef6\u91cc\u7684 model \u5b57\u6bb5\uff0c\u800c ccx \u8def\u7531\u5224\u65ad\u7684\u662f\u5404\u901a\u9053\u7684 priority \u6570\u503c\u3002\u4e24\u8005\u4e0d\u5728\u540c\u4e00\u4e2a\u7ef4\u5ea6\uff0c\u5bfc\u81f4\u201c\u5207\u6a21\u578b\u201d\u4e0e\u201c\u6539\u8def\u7531\u201d\u4e4b\u95f4\u4ea7\u751f\u4e86\u65ad\u5c42\u3002<\/p>\n<h2>\u9020\u4e00\u5ea7\u6865\uff1aCCX-Bridge \u7684\u8bbe\u8ba1\u601d\u8def<\/h2>\n<p>\u65e2\u7136\u65e0\u6cd5\u6539\u52a8 ccswitch\uff08Electron \u684c\u9762\u5e94\u7528\uff0c\u6e90\u7801\u5c01\u95ed\uff09\uff0c\u4e5f\u65e0\u6cd5\u8ba9 ccx \u81ea\u52a8\u6839\u636e\u6a21\u578b\u540d\u9009\u901a\u9053\uff08ccx \u6309 priority \u8def\u7531\uff09\uff0c\u6700\u5e72\u51c0\u7684\u65b9\u6848\u5c31\u662f\u5728\u4e2d\u95f4\u642d\u4e00\u5ea7\u201c\u7ffb\u8bd1\u5668\u201d\u2014\u2014CCX-Bridge\u3002<\/p>\n<h3>\u6838\u5fc3\u6d41\u7a0b<\/h3>\n<pre><code>ccswitch \u5207\u6362\u6a21\u578b\n    \u2193\nconfig.toml \u7684 model \u5b57\u6bb5\u53d8\u5316\n    \u2193\nCCX-Bridge \u68c0\u6d4b\u5230\u53d8\u5316\uff08fsnotify + 3\u79d2\u8f6e\u8be2\uff09\n    \u2193\n\u5339\u914d\u6a21\u578b\u540d \u2192 \u627e\u5230\u5bf9\u5e94\u7684 ccx \u901a\u9053\u7d22\u5f15\n    \u2193\n\u8c03\u7528 ccx API: PUT \/api\/responses\/channels\/{index}\n    \u2193\n\u76ee\u6807\u901a\u9053 priority=1\uff0c\u5176\u4f59 priority=2\n    \u2193\nccx \u628a\u65b0\u8bf7\u6c42\u8def\u7531\u5230\u6b63\u786e\u7684\u4e0a\u6e38\n<\/code><\/pre>\n<h3>ccx \u7684\u9690\u85cf API<\/h3>\n<p>ccx \u6ca1\u6709\u516c\u5f00\u6587\u6863\uff0c\u4ee5\u4e0b\u63a5\u53e3\u662f\u901a\u8fc7 Web UI \u9006\u5411\u548c\u8bd5\u9519\u5f97\u5230\u7684\uff1a<\/p>\n<ul>\n<li>GET \/api\/responses\/channels\uff1a\u5217\u51fa\u6240\u6709\u901a\u9053\u53ca\u72b6\u6001  <\/li>\n<li>PUT \/api\/responses\/channels\/{i}\uff1a\u4fee\u6539\u901a\u9053\u5c5e\u6027\uff08priority \u7b49\uff09  <\/li>\n<li>GET \/api\/health\uff1a\u7f51\u5173\u5065\u5eb7\u68c0\u67e5  <\/li>\n<li>GET \/api\/conversations\uff1a\u4f1a\u8bdd\u5217\u8868\u548c\u8def\u7531\u72b6\u6001  <\/li>\n<\/ul>\n<p>PUT \u8bf7\u6c42\u540e\u7acb\u5373\u751f\u6548\uff0c\u65e0\u9700\u91cd\u542f ccx\u3002<\/p>\n<h3>\u6a21\u578b\u540d\u5230\u901a\u9053\u7684\u6620\u5c04<\/h3>\n<p>ccx \u901a\u9053\u540d\u79f0\u901a\u5e38\u5e26\u968f\u673a\u540e\u7f00\uff08\u5982 deepseek-v3-abc123\uff09\uff0c\u9700\u8981\u624b\u52a8\u6216\u901a\u8fc7\u6b63\u5219\u628a\u201c\u6a21\u578b\u540d\u201d\u6620\u5c04\u5230\u201c\u901a\u9053\u7d22\u5f15\u201d\u3002CCX-Bridge \u63d0\u4f9b\u4e00\u4e2a\u7b80\u6613\u7684 JSON \u914d\u7f6e\u8868\uff1a<\/p>\n<pre><code class=\"language-json\">{\n  &quot;deepseek&quot;: 0,\n  &quot;qwen&quot;: 1,\n  &quot;yi&quot;: 2\n}\n<\/code><\/pre>\n<h2>\u5b9e\u9645\u90e8\u7f72\u4e0e\u4f7f\u7528<\/h2>\n<ol>\n<li>\u4e0b\u8f7d CCX-Bridge \u4e8c\u8fdb\u5236\uff08Windows\/macOS\/Linux \u5747\u652f\u6301\uff09\u3002  <\/li>\n<li>\u5728\u540c\u76ee\u5f55\u65b0\u5efa <code>bridge.json<\/code>\uff0c\u586b\u5165\u4e0a\u8ff0\u6620\u5c04\u8868\u3002  <\/li>\n<li>\u542f\u52a8 CCX-Bridge\uff0c\u5b83\u4f1a\u5e38\u9a7b\u540e\u53f0\u76d1\u542c <code>~\/.codex\/config.toml<\/code>\u3002  <\/li>\n<li>\u901a\u8fc7 ccswitch \u6b63\u5e38\u5207\u6362\u6a21\u578b\u5373\u53ef\uff0cBridge \u4f1a\u81ea\u52a8\u540c\u6b65 ccx \u8def\u7531\u3002<\/li>\n<\/ol>\n<h2>\u5e38\u89c1\u95ee\u9898\u6392\u67e5<\/h2>\n<div style=\"overflow-x:auto; -webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%; border-collapse:collapse; border:1px solid ddd; margin:20px 0;\">\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\"ead style=\"background-color:f7f7f7; font-weight:bold;\">\n<tr>\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\" style=\"background-color:f7f7f7; font-weight:bold;\">\u73b0\u8c61<\/th>\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\" style=\"background-color:f7f7f7; font-weight:bold;\">\u53ef\u80fd\u539f\u56e0<\/th>\n<th style=\"border:1px solid ddd; padding:10px; text-align:left;\" style=\"background-color:f7f7f7; font-weight:bold;\">\u89e3\u51b3\u529e\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">ccswitch \u5df2\u5207\uff0cccx \u4ecd\u8d70\u65e7\u901a\u9053<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">Bridge \u672a\u542f\u52a8\u6216\u6620\u5c04\u8868\u9519\u8bef<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u68c0\u67e5 Bridge \u65e5\u5fd7\uff0c\u786e\u8ba4\u901a\u9053\u7d22\u5f15\u6b63\u786e<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">ccx \u8fd4\u56de 500<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u5e76\u53d1\/\u9650\u6d41\u914d\u7f6e\u8fc7\u9ad8<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u628a maxConcurrent \u8bbe\u4e3a 1\uff0cqps \u8bbe\u4e3a 0.5<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">Bridge \u68c0\u6d4b\u4e0d\u5230\u6587\u4ef6\u53d8\u5316<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u6743\u9650\u6216\u8def\u5f84\u95ee\u9898<\/td>\n<td style=\"border:1px solid ddd; padding:10px; text-align:left;\">\u4ee5\u7ba1\u7406\u5458\/root \u8fd0\u884c\uff0c\u6216\u68c0\u67e5\u6587\u4ef6\u8def\u5f84<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u901a\u8fc7 CCX-Bridge \u8fd9\u5ea7\u201c\u6865\u201d\uff0c\u6211\u4eec\u628a ccswitch \u7684\u6a21\u578b\u5207\u6362\u52a8\u4f5c\uff0c\u7ffb\u8bd1\u6210\u4e86 ccx \u80fd\u7406\u89e3\u7684\u901a\u9053\u4f18\u5148\u7ea7\u8c03\u6574\uff0c\u771f\u6b63\u5b9e\u73b0\u4e86\u201c\u4e00\u952e\u5207\u6a21\u578b\uff0c\u6d41\u91cf\u81ea\u52a8\u8d70\u56fd\u4ea7\u201d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ccswitch \u8bf4\u5207\u4e86\uff0cccx \u5374\u6ca1\u52a8\uff1f\u600e\u4e48\u7ed9 Codex \u56fd\u4ea7\u6a21\u578b\u5207\u6362\u9020\u4e00\u5ea7\u6865\uff1f \u4e3a\u4ec0\u4e48 ccswitch \u5207\u6362\u540e\u6d41\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1739","post","type-post","status-publish","format-standard","hentry","category-ai-tools"],"_links":{"self":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/comments?post=1739"}],"version-history":[{"count":1,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1739\/revisions"}],"predecessor-version":[{"id":1740,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/posts\/1739\/revisions\/1740"}],"wp:attachment":[{"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/media?parent=1739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/categories?post=1739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imaseo.com\/blog\/wp-json\/wp\/v2\/tags?post=1739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}