fix(agent): drop temperature param for claude-opus-4-7#4459
fix(agent): drop temperature param for claude-opus-4-7#4459TheodoreSpeaks merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit 3a7f7d9. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThis PR removes the
Confidence Score: 5/5Safe to merge — the one-line removal correctly disables a deprecated API parameter for a single model with no downstream side effects. The change is a minimal, targeted removal that affects only No files require special attention; Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Request with model: claude-opus-4-7"] --> B["supportsTemperature(model)"]
B --> C{"capabilities.temperature\ndefined?"}
C -- "Before PR: YES\n(min:0, max:1)" --> D["Include temperature\nin API payload ❌"]
C -- "After PR: NO\n(removed)" --> E["Skip temperature\nin API payload ✅"]
B2["Agent Block UI"] --> F{"supportsTemperature(model)"}
F -- "Before PR: true" --> G["Show temperature slider ❌"]
F -- "After PR: false" --> H["Hide temperature slider ✅"]
|
Summary
temperaturecapability fromclaude-opus-4-7inproviders/models.tssince Anthropic deprecated the parameter for this modelsupportsTemperature('claude-opus-4-7')now returns false, so the Anthropic provider skips sendingtemperaturein the payload and the agent block hides the temperature slider for this modelType of Change
Testing
bun run lint— cleanbun run check:api-validation:strict— passedbunx vitest run providers/utils.test.ts blocks/blocks/agent.test.ts— 139 tests passingChecklist