feat: Force beta=true parameter for Anthropic channel - #2874
Conversation
WalkthroughThis pull request adds a new Claude beta query forcing feature by introducing a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
feat: Force beta=true parameter for Anthropic channel
|
IsClaudeBetaQuery 在渠道测试请求里不生效,请问这是预期行为吗? edit: 感觉是bug,新增 issue #3305 |
WHY
部分 Claude 中转商对请求路径有策略差异,需要显式携带 ?beta=true 才能放行,目前 new-api 缺少按渠道强制 beta query 的配置能力,因此在渠道配置种提供可控开关,在管理后台可配置是否强制追加 ?beta=true。
WHAT
测试与验证
已完成以下验证,功能通过:
Summary by CodeRabbit