When using Cloudflare AI Gateway's BYOK (Bring Your Own Key) or Unified Billing features, users should be able to omit apiKey from their adapter config entirely, The gateway injects the real provider credentials at runtime. However, the current adapter implementation leaks an invalid Authorization: Bearer unused header into the inner request payload sent to the gateway.
When using Cloudflare AI Gateway's BYOK (Bring Your Own Key) or Unified Billing features, users should be able to omit apiKey from their adapter config entirely, The gateway injects the real provider credentials at runtime. However, the current adapter implementation leaks an invalid
Authorization: Bearer unusedheader into the inner request payload sent to the gateway.