Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/gateway-base-url-env.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eve": patch
---

`validateGatewayApiKey` now honors the `AI_GATEWAY_BASE_URL` environment variable when constructing the gateway provider, so the `AI_GATEWAY_API_KEY` check can be pointed at a self-hosted or proxied AI Gateway instead of always hitting `ai-gateway.vercel.sh`.
1 change: 1 addition & 0 deletions packages/eve/src/setup/validate-gateway-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export async function validateGatewayApiKey(
try {
const provider = createGateway({
apiKey,
baseURL: process.env.AI_GATEWAY_BASE_URL,
fetch: (url: Parameters<typeof fetch>[0], init?: Parameters<typeof fetch>[1]) =>
globalThis.fetch(url, { ...init, signal: effectiveSignal }),
});
Expand Down