[dev] [tofikwest] tofik/hotfix-cloud-autofix-temperature#3302
Merged
Conversation
… model calls
The remediation model (claude-opus-4-8) no longer accepts the `temperature`
parameter and returns a 400 ("temperature is deprecated for this model").
Every generateObject call in the AI remediation service passed `temperature`,
so all fix-plan generation threw, was caught, and silently fell back to manual
"Remediation Steps" — making auto-fix appear broken for all AWS/GCP/Azure
findings.
Remove `temperature` from all 9 MODEL (opus-4-8) calls (AWS + GCP + Azure
generate/refine/permission/step-repair). The empty-plan retry now re-samples
at the model default instead of bumping temperature. The Sonnet fallback
(generateManualSteps) keeps temperature — sonnet-4-6 and haiku-4-5 both still
accept it.
Updated specs to assert temperature is never sent to MODEL, plus regression
tests for the AWS/GCP/Azure generate paths. 26/26 tests pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AWJZw7nETZu7JHaEdGuGhu
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
🎉 This PR is included in version 3.93.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is an automated pull request to merge tofik/hotfix-cloud-autofix-temperature into dev.
It was created by the [Auto Pull Request] action.
Summary by cubic
Fixes cloud auto-fix failures by removing the unsupported
temperatureparam from remediation model calls toclaude-opus-4-8. Auto-fix now generates plans again for AWS, GCP, and Azure; empty-plan retries re-sample using model defaults.temperaturefrom allMODELgenerateObjectcalls (generate/refine/permissions/step-repair) to avoid 400s fromclaude-opus-4-8; fallback paths that still accept it keeptemperature.temperatureis never sent and verified AWS/GCP/Azure plan generation paths.Written for commit 1cf2269. Summary will update on new commits.