Skip to content

baseurl error or 401: Codex's base_url is overridden by the routing address

Quick fix

The configuration write behavior changed in CC Switch 4.0. If the issue persists after upgrading to 4.0, provide the version and reproduction steps.

Error output
为什么不这样修改模型就会报baseurl错误或者401
English translation

Why does it report a baseurl error or 401 if I don't make this change?

The user reported that in Windows 11 and CC Switch 3.16.5, the Codex configuration used `http://127.0.0.1:15721/v1` as the actual `base_url` and set `experimental_bearer_token` to `PROXY_MANAGED`. They were also concerned that using a routing address in the general configuration would replace the provider's actual `base_url`. The maintainer replied that CC Switch 4.0 had changed the interface and configuration write behavior, so the issue was closed. The issue does not say whether 4.0 resolved the specific base_url or 401 behavior.

  1. Upgrade to CC Switch 4.0 and try again. If the issue persists, report back with the version and reproduction steps.

ToolCodex
VersionCC Switch 3.16.5(提问环境);维护者提及 CC Switch 4.0 的配置写入方式已有变化
PlatformsWindows

This page is distilled from 1 real issues

(No FAQ yet)

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.