Skip to content

provider_endpoints.url Still Requests the Old Address After Changing Codex base_url

Quick fix

After changing the Codex provider’s base_url, set provider_endpoints.url to the same new address to restore the model list.

Error output
provider 配置看起来正确,但模型列表拉取失败
English translation

The provider configuration looks correct, but fetching the model list fails.

In a Windows report on cc-switch 3.16.5, after saving a new Codex provider base_url, settings_config.config.base_url was updated, but provider_endpoints.url retained the old address. As a result, fetching the model list or sending a test request could reach the old upstream. The reporter manually changed provider_endpoints.url to match base_url, after which the model list worked again. Another comment mentioned that after changing the Codex configuration file address, the default configuration file address in CC Switch did not change, so the change was not applied to Codex. The comment did not say whether this was the same mechanism or a separate issue.

  1. Manually change the provider’s provider_endpoints.url to the same new address as settings_config.config.base_url. The reporter said the model list worked again after the change.

ToolCodex
Version3.16.5(报告版本;是否为完整受影响范围未知)
PlatformsWindows
Can manually setting provider_endpoints.url to match base_url restore the model list?
The issue reporter said the model list worked again after manually making them match.

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.