Skip to content

test: add unit tests for cloudflareAIGatewayUrl#6823

Merged
Leizhenpeng merged 1 commit into
ChatGPTNextWeb:mainfrom
TIANQIAN1238:feat-test-cloudflare
Jul 6, 2026
Merged

test: add unit tests for cloudflareAIGatewayUrl#6823
Leizhenpeng merged 1 commit into
ChatGPTNextWeb:mainfrom
TIANQIAN1238:feat-test-cloudflare

Conversation

@TIANQIAN1238

Copy link
Copy Markdown
Contributor

💻 变更类型 | Change Type

  • test

🔀 变更说明 | Description of Change

Adds test/cloudflare.test.ts for cloudflareAIGatewayUrl (app/utils/cloudflare.ts): non-gateway urls pass through unchanged, well-formed openai/azure gateway urls are preserved, and an openai gateway url with extra middle segments is rebuilt to the canonical form.

No production code is modified.

🤖 Generated with Claude Code

Cover non-gateway passthrough, well-formed openai/azure gateway urls,
and rebuilding an openai gateway url by dropping middle path segments
(app/utils/cloudflare.ts).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Leizhenpeng
Leizhenpeng merged commit a27401a into ChatGPTNextWeb:main Jul 6, 2026
1 check failed
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.

2 participants