Skip to content

fix: add DeepSeek V4 model definitions (v4-flash and v4-pro)#5429

Open
ashishgowdamj wants to merge 2 commits into
Aider-AI:mainfrom
ashishgowdamj:feat/add-deepseek-v4-models
Open

fix: add DeepSeek V4 model definitions (v4-flash and v4-pro)#5429
ashishgowdamj wants to merge 2 commits into
Aider-AI:mainfrom
ashishgowdamj:feat/add-deepseek-v4-models

Conversation

@ashishgowdamj

Copy link
Copy Markdown

Adds built-in support for deepseek/deepseek-v4-flash and deepseek/deepseek-v4-pro models so users no longer need manual .aider.model.settings.yml and .aider.model.metadata.json configuration files.

Changes:

aider/resources/model-settings.yml

  • Added deepseek/deepseek-v4-flash with edit_format: diff, use_temperature: false, editor_edit_format: editor-diff, max_tokens: 384000
  • Added deepseek/deepseek-v4-pro with the same settings

aider/resources/model-metadata.json

  • Added pricing metadata for deepseek/deepseek-v4-flash: $0.14/M input, $0.28/M output, 1M context, 384K max output
  • Added pricing metadata for deepseek/deepseek-v4-pro: $0.435/M input, $0.87/M output, 1M context, 384K max output

aider/models.py

  • Added fallback heuristic for deepseek-v4 model family (matching existing v3 and r1 patterns)

Fixes #5255

This PR addresses issues in voice.py error handling where multiple exception blocks were redundantly cleaning up temp_wav files, and adds the missing shutil import for proper cleanup. Also fixes docstring formatting in commands.py.
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.

DeepSeek V4 models not recognized

1 participant