Skip to content

There's an issue with the selected model - Claude Code

Quick fix

Remove the trailing /v1 from ANTHROPIC_BASE_URL, launch from the CLI instead of the cc-switch button to use local routing, and check model support.

Error output
There's an issue with the selected model (xxxxxx). It may not exist or you may not have access to it. Run /model to pick a different model.

When configuring third-party models in Claude Code (such as SiliconFlow or Alibaba Cloud Bailian DashScope Qwen models), mismatched API endpoint format, routing configuration, or model capabilities can cause multiple errors. Main variants include: 1. model does not exist or access denied (usually caused by an extra /v1 at the end of ANTHROPIC_BASE_URL producing a wrong request path, or not launching through the cc-switch local route); 2. API Error: 400 Value error, current model does not support parameter enable_thinking (the model does not support the thinking parameter); 3. sending images to a single-modal model causes an error; 4. incompatible context format. In addition, Qwen Coder in the cc-switch preset actually points to the Anthropic-compatible endpoint of Alibaba Cloud Bailian.

  1. Change the API request address and remove the trailing /v1 from the URL. If using Alibaba Cloud Bailian, set ANTHROPIC_BASE_URL to the Anthropic-compatible format.

  2. Do not enter Claude Code using the cc-switch UI button; that loads a temporary configuration pointing directly to the provider. Run the claude command directly in the terminal so it reads the local route configuration (such as http://127.0.0.1:15723).

  3. Check model capabilities and context compatibility. If the error says enable_thinking is unsupported or sending images fails, switch to a model that supports the required feature. If the error is caused by an incompatible context format, run /compact in Claude Code.

ToolClaude Code
VersionUnknown
PlatformsUnknown
Why does launching Claude Code from the cc-switch button cause an error?
Launching from the button loads a temporary configuration whose ANTHROPIC_BASE_URL points directly to the provider. The correct method is to start claude directly in the terminal so it uses the local route address configured in .claude/settings.json (such as http://127.0.0.1:15723).
How do I fix the error current model does not support parameter enable_thinking?
This means the currently configured model (such as some Qwen models) does not support the thinking parameter. Try switching to another model that supports this parameter.
Which service does Qwen Coder in the preset actually connect to?
Qwen Coder in the cc-switch preset actually connects to the Alibaba Cloud Bailian (DashScope) cloud API service. Its Anthropic-compatible endpoint is https://dashscope.aliyuncs.com/apps/anthropic.

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.