๐๐ถ๐ ๐๐น๐ฎ๐๐ฑ๐ฒ ๐๐๐ ๐ ๐ผ๐ฑ๐ฒ๐น ๐๐ฟ๐ฟ๐ผ๐ฟ
You see this error in your terminal: There is an issue with the selected model (deepseek-v4-pro).
I thought a new update blocked my DeepSeek API keys. I wasted 30 minutes on this theory.
The cause was a simple typo. I used a script to set my environment variables. Two lines merged into one. A missing newline broke the setup.
The shell saw one corrupt line. Your auth token did not export. Your base URL became nonsense.
Fix it by checking your script:
- Wrong: export ANTHROPIC_BASE_URL=... export ANTHROPIC_AUTH_TOKEN=...
- Right: export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic export ANTHROPIC_AUTH_TOKEN=sk-xxx
One other tip: Resuming sessions across providers is a one-way door.
- Anthropic to DeepSeek works.
- DeepSeek to Anthropic fails with a 400 error.
Check your newlines. Save your time.
Source: https://dev.to/couimet/fix-theres-an-issue-with-the-selected-model-deepseek-v4-pro-in-claude-cli-44jg Optional learning community: https://t.me/GyaanSetuAi