This commit is contained in:
Sirius
2026-08-05 19:35:07 +08:00
parent bd18678963
commit 98c6664701
3 changed files with 30 additions and 4 deletions
+12
View File
@@ -103,6 +103,18 @@ models:
`command_code_working_directory` 决定 Command Code 能看到和操作的项目目录。`response_store_directory` 保存 `store: true` 的 Response;两个相对路径都以配置文件所在目录为基准。默认存储目录是隐藏目录 `.command-code-openai-bridge/responses``models.<name>.effort` 会传给 Command Code 的 `--effort`Responses 请求中的 `reasoning.effort` 优先。可用 effort 由对应底层模型决定。服务强制只监听 `127.0.0.1`。客户端只能选择配置中的模型名,不能注入额外 CLI 参数。
### Obsidian Copilot 流式输出
在 Copilot 中添加自定义模型时使用:
- Provider`3rd party (openai-format)`
- Base URL`http://127.0.0.1:18000/v1`
- API Key:任意非空文本
- CORS:关闭
- Streaming:开启
Bridge 会直接响应浏览器 CORS 预检,包括 Copilot 和 OpenAI SDK 发送的自定义请求头及本机 Private Network Access。关闭 Copilot 的 CORS 绕过后,请求使用原生 `fetch`,可以读取 Bridge 返回的 SSE 流。
## 启动、停止与重启
```bash