mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-30 18:40:32 +08:00
138c277fae
`-c model_provider_base_url=...` is not a valid Codex config key. Codex uses nested paths (e.g. `model_providers.<name>.base_url`) per the `-c` help text, so the override was creating a top-level TOML entry that Codex never reads. The override was also redundant: Codex's built-in `openai` provider honors the `OPENAI_BASE_URL` env var natively (standard OpenAI SDK convention), verified against codex-cli 0.118 — a request with `OPENAI_BASE_URL=http://127.0.0.1:9/v1` tries to reach exactly that URL. The host provider already forwards `OPENAI_BASE_URL` into the container (src/providers/codex.ts), so BYO-endpoint users keep their config path without this broken `-c` flag in the way. Net: -5 LOC, one less silent-fail branch, no user-visible change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>