Skip to content

How to stop openrouter/deepseek/deepseek-r1 from thinking in thousands of tokens ? #3803

Open
@GeorgeFlorian

Description

@GeorgeFlorian

Issue

How to stop openrouter/deepseek/deepseek-r1 from thinking in thousands of tokens ?
I input a prompt, it thinks in 100+ lines with code and all that shit and then it ask to edit files and then it again uses token to write the same code from the thinking process.

~/.aider.model.setting.yml:

name: openrouter/deepseek/deepseek-r1
  extra_params:
    top_p: 0.95
  use_temperature: 0.6

~/.aider.conf.yml

model: openrouter/deepseek/deepseek-r1
architect: true
editor-model: openrouter/anthropic/claude-3.5-sonnet
auto-accept-architect: false
auto-commits: false

cache-prompts: false
stream: true

dark-mode: true

lint: true

## Set the thinking token budget for models that support it (default: not set)
# thinking-tokens: 100

I have tried thinking-tokens: 100, it does not work.
I have tried remove_reasoning: think which is a setting that aider can't start with. (#3008 (comment))

Is there no fix to this issue ?
Should I just change from R1 ?

Version and model info

Aider v0.81.1
Main model: openrouter/deepseek/deepseek-r1 with architect edit format, prompt cache, infinite output
Editor model: openrouter/anthropic/claude-3.5-sonnet with editor-diff edit format
Weak model: openrouter/deepseek/deepseek-chat
Git repo: .git with 75 files
Repo-map: using 4096 tokens, auto refresh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions