Closed lloydzhou closed 3 months ago
@lloydzhou is attempting to deploy a commit to the NextChat Team on Vercel.
A member of the Team first needs to authorize it.
The changes introduce a new utility function, cloudflareAIGatewayUrl
, for constructing URLs through Cloudflare AI Gateway across various parts of the application. This affects URL construction in the route.ts
, common.ts
, anthropic.ts
, and openai.ts
files to ensure consistent, Cloudflare-integrated API requests.
File Path | Change Summary |
---|---|
app/api/anthropic/[...path]/route.ts |
Added import for cloudflareAIGatewayUrl , modified fetchUrl construction. |
app/api/common.ts |
Integrated cloudflareAIGatewayUrl in requestOpenai function for fetchUrl . |
app/client/platforms/anthropic.ts |
Modified URL construction in ClaudeApi class using cloudflareAIGatewayUrl . |
app/client/platforms/openai.ts |
Updated buildUrl method in ChatGPTApi class to use cloudflareAIGatewayUrl . |
app/utils/cloudflare.ts |
Added cloudflareAIGatewayUrl function for constructing AI Gateway URLs. |
In the code where functions dwell,
Cloudflare gateways cast their spell,
URLs crafted with such care,
Through the cloud, they now will fare.
APIs whisper, APIs call,
In harmony, they rise and fall.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
rebuild fetchUrl, if using cloudflare ai gateway
4976 #4926 #3347 #4405 #3079