Fix: exclude temperature parameter for reasoning-tier models #4

Merged
rve merged 1 commits from feat/ai-pipeline-hardening-phase-2 into main 2026-05-20 15:18:01 +00:00
Owner

Anthropic has deprecated the temperature parameter for their reasoning
models (claude-opus-4-7). This was causing a 400 error when analyzeGraph
called callLLM with tier: 'reasoning'.

Solution: conditionally exclude temperature from the request body when
tier === 'reasoning'. Fast and standard tiers retain their temperature
parameter.

This unblocks the "Analyse and Optimize" button in the Knowledge Graph
admin panel post-Phase-2 deployment.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Anthropic has deprecated the temperature parameter for their reasoning models (claude-opus-4-7). This was causing a 400 error when analyzeGraph called callLLM with tier: 'reasoning'. Solution: conditionally exclude temperature from the request body when tier === 'reasoning'. Fast and standard tiers retain their temperature parameter. This unblocks the "Analyse and Optimize" button in the Knowledge Graph admin panel post-Phase-2 deployment. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
rve added 1 commit 2026-05-20 15:17:53 +00:00
Fix: exclude temperature parameter for reasoning-tier models
All checks were successful
On Pull Request to Main / test (pull_request) Successful in 31s
On Pull Request to Main / publish (pull_request) Successful in 1m3s
On Pull Request to Main / deploy-dev (pull_request) Successful in 1m33s
40eff976b4
Anthropic has deprecated the temperature parameter for their reasoning
models (claude-opus-4-7). This was causing a 400 error when analyzeGraph
called callLLM with tier: 'reasoning'.

Solution: conditionally exclude temperature from the request body when
tier === 'reasoning'. Fast and standard tiers retain their temperature
parameter.

This unblocks the "Analyse and Optimize" button in the Knowledge Graph
admin panel post-Phase-2 deployment.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
rve merged commit 9771928926 into main 2026-05-20 15:18:01 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rve/learning-platform#4