mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 05:01:03 +03:00
fix(core): send gatewayApiKey to Cloudflare AI Gateway (#62574)
This commit is contained in:
committed by
GitHub
Unverified
parent
30e7a4d573
commit
c3eadb976a
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user