Skip to content

fix(anthropic): omit beta query for Cloudflare REST messages - #8420

Merged
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
wozhenbang2004:fix/cloudflare-rest-messages-beta
Nov 7, 2026
Merged

Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
wozhenbang2004:fix/cloudflare-rest-messages-beta

Conversation

@wozhenbang2004

Copy link
Copy Markdown
Contributor

Omit beta=true for 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.

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
@Wei-Shaw
Wei-Shaw merged commit 2c93aea into Wei-Shaw:main Nov 7, 2026
7 of 9 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants