Skip to content

fix: avoid conflicting Anthropic sampling parameters - #6891

Open
jabrailkhalil wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
jabrailkhalil:jabrailkhalil-find-nextchat-contribution
Open

jabrailkhalil wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
jabrailkhalil:jabrailkhalil-find-nextchat-contribution

Conversation

@jabrailkhalil

@jabrailkhalil jabrailkhalil commented Sep 7, 2026

Copy link
Copy Markdown

Summary

Fixes #6782 by avoiding the incompatible temperature and top_p combination for Claude 4.x models.

  • Omits top_p for Claude 4.x Anthropic requests.
  • Preserves top_p for older Claude models.
  • Adds regression coverage for both behaviors.

Validation

  • Focused Jest regression suite: 2 tests passed.
  • git diff --check: passed.

The remaining Vercel status is an account-level deployment authorization gate and does not report a code or test failure.

@jabrailkhalil

Copy link
Copy Markdown
Author

I was able to install dependencies and run the focused regression suite locally: 2 tests passed. The remaining red check is Vercel account-level deployment blocking, which is outside this patch.

Signed-off-by: jabrailkhalil <jabrailkhalil@gmail.com>
@jabrailkhalil
jabrailkhalil force-pushed the jabrailkhalil-find-nextchat-contribution branch from 2d0c13f to ee4b23c Compare September 10, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NextChat sends both temperature and top_p to Anthropic — Claude 4.x rejects with 400

1 participant