API still connects to OpenAI - Codex
Quick fix
Delete the existing configuration, then re-add and fully configure the provider in cc-switch to generate a new configuration.
Symptom
Section titled “Symptom”api还是连接到openaiThe API still connects to OpenAI.
The existing `config.toml` in the report contained only `[api]` and `base_url`. After cc-switch recognized the default provider in that configuration, switching models and saving generated a configuration with missing fields, so the Codex extension in VS Code still connected to OpenAI.
Delete the existing configuration file and remove the recognized provider in cc-switch.
Add the provider again and complete all required fields so cc-switch generates a new configuration. The reporter confirmed that the completely newly generated configuration worked.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
- Could this be an extension issue?
- The discussion did not confirm that this was an issue with the Codex extension in VS Code; the maintainer noted that the original `config.toml` configuration was incorrect, and the reporter confirmed that a newly generated configuration worked.
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.