You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Low Risk
Low risk: a small change to the Anthropic request payload plus a focused regression test; behavior change is limited to removing a single (now-invalid) field from API calls.
Overview
Fixes EvalOps PR lens Anthropic calls by removing the deprecated temperature field from the request body in call_anthropic, preventing 400s on newer Claude models.
Adds a regression test that stubs Net::HTTP.start, captures the outgoing JSON payload, and asserts temperature is not sent.
Reviewed by Cursor Bugbot for commit 69843e0. Bugbot is set up for automated code reviews on this repo. Configure here.
Closing as superseded: main now contains cca3cef (Fix Opus PR lens request parameters), which removes the deprecated Anthropic temperature parameter and covers this failure path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
temperatureparameter from Anthropic Messages API calls used by EvalOps PR lens reviewstemperatureis omittedWhy
evalops-pr-lens/*status contexts are currently erroring across open deploy/platform PRs with:Anthropic API failed with HTTP 400: ... "temperature" is deprecated for this model.That is blocking deploy train PRs, including evalops/deploy#2828 and the active train cut PR.
Validation
ruby -Itest test/evalops_pr_lens_review_test.rb --name test_call_anthropic_omits_deprecated_temperature_parameterruby -Itest test/evalops_pr_lens_review_test.rbruby -Itest test/check_pr_review_threads_test.rbruby -Itest test/classify_agent_authorship_test.rbruby -Itest test/publish_codex_structured_review_test.rbruby -Itest test/validate_services_catalog_test.rbruby -Itest test/sweep_recent_review_feedback_test.rb