Skip to content

fix(deepseek): support DeepSeek V4 model family with haiku differenti…#30

Open
James-FE wants to merge 1 commit into
foreveryh:mainfrom
James-FE:feat/deepseek-v4-haiku
Open

fix(deepseek): support DeepSeek V4 model family with haiku differenti…#30
James-FE wants to merge 1 commit into
foreveryh:mainfrom
James-FE:feat/deepseek-v4-haiku

Conversation

@James-FE

@James-FE James-FE commented Jun 9, 2026

Copy link
Copy Markdown

…ation

DeepSeek V4 Pro (April 2026) introduced distinct model tiers:

  • deepseek-v4-pro (Sonnet/Opus equivalent)
  • deepseek-v4-flash (Haiku equivalent)

Previously, ccm hardcoded 'deepseek-chat' / 'deepseek/deepseek-v3.2' for all model aliases, ignoring config overrides and lacking haiku differentiation.

Changes:

  • Replace hardcoded model names in switch_to_deepseek() with config variables
  • Replace hardcoded model names in emit_env_exports() deepseek case
  • Add DEEPSEEK_HAIKU_MODEL to config templates and provider config parsing
  • Use haiku-specific model for ANTHROPIC_DEFAULT_HAIKU_MODEL across all write paths (user_write_settings, project_write_settings, and their fallbacks)

Users can now set DEEPSEEK_MODEL and DEEPSEEK_HAIKU_MODEL in ~/.ccm_config to target specific DeepSeek models, with backwards-compatible defaults.

…ation

DeepSeek V4 Pro (April 2026) introduced distinct model tiers:
- deepseek-v4-pro (Sonnet/Opus equivalent)
- deepseek-v4-flash (Haiku equivalent)

Previously, ccm hardcoded 'deepseek-chat' / 'deepseek/deepseek-v3.2' for all
model aliases, ignoring config overrides and lacking haiku differentiation.

Changes:
- Replace hardcoded model names in switch_to_deepseek() with config variables
- Replace hardcoded model names in emit_env_exports() deepseek case
- Add DEEPSEEK_HAIKU_MODEL to config templates and provider config parsing
- Use haiku-specific model for ANTHROPIC_DEFAULT_HAIKU_MODEL across all write paths
  (user_write_settings, project_write_settings, and their fallbacks)

Users can now set DEEPSEEK_MODEL and DEEPSEEK_HAIKU_MODEL in ~/.ccm_config to
target specific DeepSeek models, with backwards-compatible defaults.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant