eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
20 lines (19 loc) • 1.18 kB
TypeScript
import type { LanguageModel } from "ai";
/** AI Gateway model listing endpoint (OpenAI-compatible `/v1/models`). */
export declare const AI_GATEWAY_MODELS_URL = "https://ai-gateway.vercel.sh/v1/models";
/** AI Gateway model catalog endpoint, the richer variant of {@link AI_GATEWAY_MODELS_URL}. */
export declare const AI_GATEWAY_MODELS_CATALOG_URL = "https://ai-gateway.vercel.sh/v1/models/catalog";
/**
* A `fetch` for direct AI Gateway requests that identifies eve via its
* User-Agent product token — call sites get a decorated transport, not header
* plumbing. Unlike the Sandbox binding's `getVercelSandboxFetch`, nothing is
* constructed per call site, so this is a value rather than a factory.
*/
export declare const vercelGatewayFetch: typeof globalThis.fetch;
/**
* Request headers eve attaches for a model's provider, or `undefined` when
* the provider needs none. Gateway-routed models (bare ids and `gateway.*`
* instances) get the eve User-Agent product token so AI Gateway can attribute
* the traffic; direct-provider models get no extra headers.
*/
export declare function resolveProviderHeaders(model: LanguageModel): Record<string, string> | undefined;