<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DeepSeek on Bruce AI 工程笔记</title><link>https://www.heyuan110.com/zh/tags/deepseek/</link><description>Recent content in DeepSeek on Bruce AI 工程笔记</description><generator>Hugo</generator><language>zh</language><lastBuildDate>Tue, 15 Sep 2026 20:00:00 +0800</lastBuildDate><atom:link href="https://www.heyuan110.com/zh/tags/deepseek/index.xml" rel="self" type="application/rss+xml"/><item><title>Codex 接入第三方模型完美指南：深入 config.toml 与 CC Switch 协议转换</title><link>https://www.heyuan110.com/zh/posts/ai/2026-09-15-configuring-third-party-models-in-codex/</link><pubDate>Tue, 15 Sep 2026 20:00:00 +0800</pubDate><guid>https://www.heyuan110.com/zh/posts/ai/2026-09-15-configuring-third-party-models-in-codex/</guid><description>&lt;p&gt;&lt;img src="https://www.heyuan110.com/posts/ai/2026-09-15-configuring-third-party-models-in-codex/cover.webp"
 alt="Codex 接入第三方模型完美指南"
 
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 width="1200"
 height="630"
/&gt;
&lt;/p&gt;
&lt;p&gt;在 AI 编程 Agent 的日常实战中，将 OpenAI Codex 的底层模型替换为第三方大模型（如 DeepSeek-V3 或 Claude 3.5 Sonnet / Fable 5），是极客开发者优化成本与调用效率的终极武器。由于 Codex 在执行多文件重构、自动化代码库扫描、深度测试修复等高频长程任务时会消耗天量 Token，如果一味直连 OpenAI 官方模型，高昂的账单往往让人望而却步。将请求改道至性价比极高的 DeepSeek，或拥有最强逻辑推理的 Claude 旗舰模型，能让我们在不改变 Codex 顶尖智能体运行逻辑的前提下，享受到最极致的性价比与模型选择权。&lt;/p&gt;
&lt;p&gt;然而，这条接入之路绝非简单修改一行 &lt;code&gt;base_url&lt;/code&gt; 就能搞定。由于 Codex 内部采用了一套极为严苛、结构复杂的原生通信协议，直接套用普通的“OpenAI 兼容端点”必然会遭遇各种静默报错。本文将带大家从底层通信协议切入，详细剖析 Responses API 的独特机制，演示如何编写最新的 0.134.0+ 独立配置文件（Profile），并实操如何通过 &lt;strong&gt;CC Switch&lt;/strong&gt; 实现完美的本地协议转换，助你彻底打通 CLI、桌面端与 IDE 扩展。&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="1-协议障壁responses-api-与-chat-completions-的底层对决"&gt;1. 协议障壁：Responses API 与 Chat Completions 的底层对决&lt;a href="#1-%e5%8d%8f%e8%ae%ae%e9%9a%9c%e5%a3%81responses-api-%e4%b8%8e-chat-completions-%e7%9a%84%e5%ba%95%e5%b1%82%e5%af%b9%e5%86%b3" class="anchor" aria-hidden="true"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
 stroke-linecap="round" stroke-linejoin="round"&gt;
 &lt;path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"&gt;&lt;/path&gt;
 &lt;line x1="8" y1="12" x2="16" y2="12"&gt;&lt;/line&gt;
 &lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;要成功将 Codex 改道至自定义后端，首先必须击碎最核心的“协议障壁”。现在几乎所有的大模型聚合平台或中转服务都宣称“完全兼容 OpenAI 接口”。但必须看清的事实是：&lt;strong&gt;它们兼容的只是 Chat Completions 接口（&lt;code&gt;/v1/chat/completions&lt;/code&gt;），而 Codex 运行所需的底层通道是 Responses API（&lt;code&gt;/responses&lt;/code&gt;）。&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>