Skip to content

Conversation

@roerohan
Copy link
Contributor

@roerohan roerohan commented Jan 30, 2026

Fixed buildEnvVars function to correctly handle trailing slashes in AI_GATEWAY_BASE_URL. URLs ending in /openai/ or /anthropic/ are now normalized by removing trailing slashes before provider detection. This ensures OpenAI and Anthropic gateways are correctly identified regardless of trailing slash presence.

@andreasjansson andreasjansson merged commit 7b0ba78 into cloudflare:main Jan 30, 2026
1 check passed
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