aider icon indicating copy to clipboard operation
aider copied to clipboard

Thinking tokens on commit message

Open AM-I-Human opened this issue 7 months ago • 5 comments

Issue

I'm using ollama qwen3 to get the commit comments. And the commits messages have the thinking tocken ... I think is worth to add the support on removing that

Version and model info

Aider v0.85.2 Main model: gemini/gemini-2.5-pro with diff-fenced edit format Weak model: ollama/qwen3 Git repo: .git with 20 files Repo-map: using 4096 tokens, auto refresh

AM-I-Human avatar Jul 25 '25 07:07 AM-I-Human

Which precise qwen3 model are you using to generate the commit messages?

I've been working on a similar issue and have a PR that addresses the problem with the qwen3 30b family - not sure if it's relevant to your setup, but happy to share if it might help!

https://github.com/Aider-AI/aider/pull/4383

Skountz avatar Jul 25 '25 20:07 Skountz

qwen3:8b the ollama default

AM-I-Human avatar Jul 27 '25 06:07 AM-I-Human

I added a suggestion to your PR so it will be easier to make the changes. Qwen3 reasoning is enabled by default so it is better to add it on all models. It is setted the 235b as not whinking, and I left it.

AM-I-Human avatar Jul 27 '25 08:07 AM-I-Human

will be closed by #4383

AM-I-Human avatar Jul 27 '25 15:07 AM-I-Human

Wouldn't it be better for aider to filter out anything between whatever reasoning_tag is set to than to turn thinking off?

Aider v0.86.1
Model: ollama_chat/qwen3:30b with whole edit format
Git repo: .git with 1 files
Repo-map: using 4096 tokens, auto refresh
Image

I should add that I don't see this happen with qwen3-coder:30b. It seems to be able to produce commit messages correctly.

scionaltera avatar Oct 12 '25 19:10 scionaltera