BrowserOS icon indicating copy to clipboard operation
BrowserOS copied to clipboard

Anthropic Sonnet 4.5 always fail in agent mode due to top_p and temperature both set

Open mklikushin opened this issue 1 week ago • 0 comments

Issue Type

Agent Issue

Operating System

macOS

Description of the bug

When adding Claude under provider templates, runs will always return:

⚠️ Error: Error: Planning failed: Planning failed: 400 {"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_011CVXEc1pdn4pBywEv3mkNd"}

This is due to Anthropic not allowing both temprature and top_p to be set simultaneously for 4.5 model API calls.

Image

There is no option to disable temperature or toggle between temp and top_p in the anthropic template. Therefore, no 4.5 anthropic models will ever work for agent runs.

PROPOSED FIX: -For quick patch, allow disabling temperature in the anthropic/edit provider window -For comprehensive fix, allow granular control over top_p, and only allow user to select either top_p or temperature for api requests instead of both, which will always fail

Steps to Reproduce

  1. Open BrowserOS and navigate to Settings (gear icon on home page)
  2. BrowserOS AI -> Quick Provider Templates -> Claude -> Use
  3. In Edit Provider popup, select Anthropic, Claude, https://api.anthropic.com, claude-sonnet-4-5-20250929
  4. Enter Anthropic API key
  5. Check "Supports Images," set context window size to 200000, Temperature to 0.7.
  6. Click Save
  7. Navigate to new tab
  8. Select "Agent" in top right of new tab to open agent mode window
  9. Select "Claude" in top left of agent window as provider
  10. Click "Agent Mode" in bottom of agent window
  11. Submit action request
  12. Observe error message:
Image

Screenshots / Videos

No response

BrowserOS Version

Version 137.0.7234.69 (Official Build) (arm64)

Additional Context

No response

mklikushin avatar Nov 26 '25 22:11 mklikushin