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.
Symptom
Section titled “Symptom”provider 配置看起来正确,但模型列表拉取失败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.
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.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
- 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.
Related problems
Section titled “Related problems”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.