Skip to content

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.

Error output
api还是连接到openai
English translation

The 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.

  1. Delete the existing configuration file and remove the recognized provider in cc-switch.

  2. 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.

ToolCodex
Version3.14.1(报告的受影响版本)
PlatformsWindows
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.

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.