mods icon indicating copy to clipboard operation
mods copied to clipboard

sonnet 4.5 doesn't work with current config template

Open mil-ad opened this issue 2 months ago • 3 comments

Description

The new Sonnet 4.5 doesn't seem to work with the current config template in mods.

I get:

 ERROR  There was a problem with the anthropic API request.

  POST "https://api.anthropic.com/v1/messages": 400 Bad Request(Request-ID: req_011CTgkhvcrYoYJkUvsizhDT) {"type":"error","error":{"type":"invalid_request_error","message":"`temperature` and`top_p` cannot both be specified for this model. Please use only one."},"request_id":"req_011CTgkhvcrYoYJkUvsizhDT"}

Version

v1.8.1

Environment

Linux / Kitty

mil-ad avatar Oct 01 '25 16:10 mil-ad

@caarlos0 ? 🥺

mil-ad avatar Oct 03 '25 13:10 mil-ad

I made a small PR to fix this but it seems like mods is not being maintained anymore? There's now a crush repo but I have no interest in that project.

mil-ad avatar Oct 08 '25 07:10 mil-ad

Actually, if you look carefully you will see that someone already created an issue about disabling these: Issue https://github.com/charmbracelet/mods/issues/480

This was fixed in this PR: PR https://github.com/charmbracelet/mods/pull/550

Which was merged and part of this release: https://github.com/charmbracelet/mods/releases/tag/v1.8.1

Solution:

topp: -1

Please feel free to close this issue if this fixes it for you.

roychri avatar Oct 20 '25 12:10 roychri