fix(core): send gatewayApiKey to Cloudflare AI Gateway (#62574)

This commit is contained in:
Dan Smolsky
2026-11-10 00:03:25 -05:00
committed by GitHub
Unverified
parent 30e7a4d573
commit c3eadb976a
+6 -3
View File
@@ -544,9 +544,12 @@ export const layer = Layer.effect(
)
function hasConfiguredAuth(model: RuntimeInfo) {
return [model.settings?.apiKey, model.settings?.authToken, model.settings?.accessToken].some(
(value) => typeof value === "string" && value !== "",
)
return [
model.settings?.apiKey,
model.settings?.gatewayApiKey,
model.settings?.authToken,
model.settings?.accessToken,
].some((value) => typeof value === "string" && value !== "")
}
const API_KEY_AUTH_PACKAGES: ReadonlySet<string> = new Set([