fix(anthropic): remove deprecated temperature and top_p parameters (Anthropic API 2026-10-21)

PR
12h ago
+0-8

Summary

This pull request updates anthropic call sites for recipe: Anthropic API 2026-10-21: temperature, top_p, top_k removal.

What changed

  • Recipe: Anthropic API 2026-10-21: temperature, top_p, top_k removal
  • Files changed: 1
  • Call sites patched: 8/8
FileLinesCall sitesAST Re-parseResidual Zero
archive/deprecated-providers/anthropic-ai/src/index.tsL107, L135, L268, L3418/8✓ pass✓ zero

Why

Risk assessment

Risk level: LOW
Deterministic AST recipe applied cleanly with low blast radius.

Proof (How this was checked)

  • Deterministic AST syntax diagnostics and residual check passed (parse_ok and residual_zero).
  • Every modified file was verified in memory: AST re-parses with 0 syntax errors, and zero deprecated call sites remain.

Not verified

This PR was not validated by running your test suite. Please run CI before merging.

What you must check

  • Run your integration and unit test suite against the updated call sites.
  • Confirm that your provider API keys or client configuration headers align with the new endpoint or model specification.
  • Verify prompt behaviors and parameter values in staging before releasing to production.

How to close or opt out

  • To opt out or reject this change, close this pull request without merging.
  • To revert this change after merging:
git revert 72a46c76b4507e1f98b41d5050a92bd30587eb70

An agent wrote this pull request using DriftFix deterministic recipes. Generated by DriftFix. No LLM wrote this code change.


Summary by cubic

Removes the deprecated temperature and top_p parameters from all four Anthropic API call sites so requests stay compatible with the Anthropic API versioning effective 2026-10-21.

  • Caller-provided temperature and topP provider options are now silently ignored instead of being sent to the API, so generation no longer uses the previous temperature defaults and may produce different results depending on the provider's defaults.

Summary by CodeRabbit

  • Behavior Changes
    • Requests sent through the deprecated Anthropic integration no longer include temperature or top-p settings for text and object generation. This removes the previously applied temperature defaults for these requests, as well as forwarding of configured top-p values. Depending on the provider’s own defaults, generated results may differ.