mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
docs: 增加codex额外参数配置说明
This commit is contained in:
@@ -481,6 +481,14 @@ export OPENAI_BASE_URL="http://127.0.0.1:3000/openai" # 根据实际填写你服
|
|||||||
export OPENAI_API_KEY="后台创建的API密钥" # 使用后台创建的API密钥
|
export OPENAI_API_KEY="后台创建的API密钥" # 使用后台创建的API密钥
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Codex 额外配置:**
|
||||||
|
|
||||||
|
需要在 `~/.codex/config.toml` 文件中添加以下配置来禁用响应存储:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
disable_response_storage = true
|
||||||
|
```
|
||||||
|
|
||||||
### 5. 第三方工具API接入
|
### 5. 第三方工具API接入
|
||||||
|
|
||||||
本服务支持多种API端点格式,方便接入不同的第三方工具(如Cherry Studio等):
|
本服务支持多种API端点格式,方便接入不同的第三方工具(如Cherry Studio等):
|
||||||
|
|||||||
@@ -474,6 +474,20 @@
|
|||||||
<div class="whitespace-nowrap text-gray-300">echo $env:OPENAI_API_KEY</div>
|
<div class="whitespace-nowrap text-gray-300">echo $env:OPENAI_API_KEY</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="rounded-lg border border-yellow-200 bg-yellow-50 p-3 sm:p-4">
|
||||||
|
<h6 class="mb-2 font-medium text-yellow-800">Codex 额外配置</h6>
|
||||||
|
<p class="mb-3 text-sm text-yellow-700">
|
||||||
|
需要在
|
||||||
|
<code class="rounded bg-yellow-100 px-1">~/.codex/config.toml</code>
|
||||||
|
文件中添加以下配置来禁用响应存储:
|
||||||
|
</p>
|
||||||
|
<div
|
||||||
|
class="overflow-x-auto rounded bg-gray-900 p-2 font-mono text-xs text-green-400 sm:p-3 sm:text-sm"
|
||||||
|
>
|
||||||
|
<div class="whitespace-nowrap text-gray-300">disable_response_storage = true</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -985,6 +999,20 @@
|
|||||||
<div class="whitespace-nowrap text-gray-300">echo $OPENAI_API_KEY</div>
|
<div class="whitespace-nowrap text-gray-300">echo $OPENAI_API_KEY</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="rounded-lg border border-yellow-200 bg-yellow-50 p-3 sm:p-4">
|
||||||
|
<h6 class="mb-2 font-medium text-yellow-800">Codex 额外配置</h6>
|
||||||
|
<p class="mb-3 text-sm text-yellow-700">
|
||||||
|
需要在
|
||||||
|
<code class="rounded bg-yellow-100 px-1">~/.codex/config.toml</code>
|
||||||
|
文件中添加以下配置来禁用响应存储:
|
||||||
|
</p>
|
||||||
|
<div
|
||||||
|
class="overflow-x-auto rounded bg-gray-900 p-2 font-mono text-xs text-green-400 sm:p-3 sm:text-sm"
|
||||||
|
>
|
||||||
|
<div class="whitespace-nowrap text-gray-300">disable_response_storage = true</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1487,6 +1515,20 @@
|
|||||||
<div class="whitespace-nowrap text-gray-300">echo $OPENAI_API_KEY</div>
|
<div class="whitespace-nowrap text-gray-300">echo $OPENAI_API_KEY</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="rounded-lg border border-yellow-200 bg-yellow-50 p-3 sm:p-4">
|
||||||
|
<h6 class="mb-2 font-medium text-yellow-800">Codex 额外配置</h6>
|
||||||
|
<p class="mb-3 text-sm text-yellow-700">
|
||||||
|
需要在
|
||||||
|
<code class="rounded bg-yellow-100 px-1">~/.codex/config.toml</code>
|
||||||
|
文件中添加以下配置来禁用响应存储:
|
||||||
|
</p>
|
||||||
|
<div
|
||||||
|
class="overflow-x-auto rounded bg-gray-900 p-2 font-mono text-xs text-green-400 sm:p-3 sm:text-sm"
|
||||||
|
>
|
||||||
|
<div class="whitespace-nowrap text-gray-300">disable_response_storage = true</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user