mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-28 19:14:53 +00:00
fix(core): send gatewayApiKey to Cloudflare AI Gateway (#62574)
This commit is contained in:
parent
30e7a4d573
commit
c3eadb976a
1 changed files with 6 additions and 3 deletions
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue