Claude newer models throw error when using `temperature` and `top_p` at the sametime
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3580249. --> Reported by: [lbesenyei](https://www.drupal.org/user/2626013) Related to !1332 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Following the issue raised on AI Provider Anthropic #3566209 it surfaced that other providers, using affected models can run into the same error response.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Using Api explorer run prompts using claude agents like sonnet 4.6 without specifying temperature or top k values</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Remove top k parameter when using claude models.<br> Optionally Clear parameter array of empty values.</p> > Related issue: [Issue #3566209](https://www.drupal.org/node/3566209)
issue