[BUG] claude code doesn't use claude-3-7-sonnet-20250219 model by default. It is using 3.5 and the quality of code output is dramatically bad
Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 11 comments · opened May 21, 2025 · closed May 21, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator)
responded on this thread — see the highlighted reply below.
It doesn't use the default model as expected claude-3-7-sonnet-20250219. It is using 3.5 and the quality of code output is dramatically bad. you can check this by calling /cost
11 Comments
Can you show us the output? Can't test /cost on max plan.
I'm seeing the same thing. I asked claude code how to change the model and it said to use the --model option. Looks like that worked.
claude --model claude-3-7-sonnet-20250219 "your prompt here" @gautammd
<img width="1372" alt="Image" src="https://github.com/user-attachments/assets/d18b0b0c-27a9-468d-abcc-8b4c80a03c3c" />
@kcindric yeah, I can't now either, I could see this when I was on pay as you go mode and then I switched to max thinking that it will do me better of using latest model but, it isn't looking at the quality of code.
@bickster how did you use the -model option, I get these errors -
I switched to pay as you for a second. here's the output from /cost
we really need more insight here
#1098 https://github.com/anthropics/claude-code/issues/1098#issuecomment-2884244872
(non-anthropic?) > Thanks for digging in, but Claude Code uses Haiku for some operations like generating conversation summaries or the words that you see in the spinner. The reporting breakdown by model is new but the behavior isn't. Unless you are having problems, I don't think this is a bug.
#1177 related as well
My last long session:
@backnotprop I see, thanks for clarity there. how can we enforce it to use claude-3-7-sonnet for both input tokens and output. like I see another comment here - https://github.com/anthropics/claude-code/issues/1177#issuecomment-2892421511 , this true for me as well.
is there any evidence that this has _changed_?
my understanding is that — broadly — Haiku has always been used to read & summarize files, Sonnet has always been used to think & write code
I don't think what I suggested above is truly working. Looks to be an hallucination. Chatting with some people in discord about it. If you're running Bedrock & Vertex you might be able to control the input and output model - https://docs.anthropic.com/en/docs/claude-code/bedrock-vertex
Hi all, I can help clarify a couple things:
As of the latest version of Claude Code (0.2.125):
claude-3-7-sonnet-20250219is the default version.--modelflag. You can useclaude --helpto see the available flags.When you see
claude-3-5-haikuin/cost, the Haiku usage comes from "Background Token Usage" described in https://docs.anthropic.com/en/docs/claude-code/costs#background-token-usageIf you _really_ need to change the model (though there should be no reason to and there are limitations), you can use the
ANTHROPIC_MODELenvironment variable described in https://docs.anthropic.com/en/docs/claude-code/bedrock-vertex#model-configuration. For example, you'll find that if you actually use Claude 3.5 Sonnet v2,ANTHROPIC_MODEL=claude-3-5-sonnet-20241022 claude, you'll get a very different response.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.