Repository navigation
fix(anthropic): omit beta query for Cloudflare REST messages - #8420
Merged
Wei-Shaw merged 1 commit intoNov 7, 2026
Merged
Conversation
CherryLover
pushed a commit
to CherryLover/sub2api
that referenced
this pull request
Nov 5, 2026
Selective adaptation of Wei-Shaw/sub2api PR Wei-Shaw#8420 (2106081) onto CherryLover/main 6002b2a. Preserve beta query on Anthropic and Cloudflare native gateway; add endpoint validation and three entry-point regressions.
hjkl950217
added a commit
to hjkl950217/sub2api
that referenced
this pull request
Nov 6, 2026
Co-Authored-By: Claude Code <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Omit
beta=truefor Cloudflare’s HTTPS account REST Messages endpoint. A shared URL builder covers forwarding, API-key passthrough, and account connection tests while preserving existing URL validation, authentication, and beta-query behavior for Anthropic and Cloudflare’s native gateway.Adds endpoint-matching cases, three-entry-point regressions, allowlist checks, and a query-rejecting mock.
Validation: the regression failed before the fix; all 25 helper cases pass with normal compiler settings. Focused service regressions pass with inlining disabled only for the service package. The default optimized service build was resource-blocked; full-suite, lint, and live-provider checks were not run.
The separately reported HTTP 401 remains unresolved.
Related #8274.