/** * Options for creating a Tinfoil AI SDK provider. */ export interface CreateTinfoilAIOptions { /** * Override the base URL for API requests. * Useful for proxying requests through your own backend. */ baseURL?: string; /** GitHub repo for code verification. */ configRepo?: string; /** URL to fetch the attestation bundle from. */ attestationBundleURL?: string; } /** * Create a Tinfoil provider for the Vercel AI SDK. * * This performs enclave verification and returns an OpenAI-compatible provider * that can be used with Vercel AI SDK functions like `generateText` and `streamText`. * * @param apiKey - Your Tinfoil API key. Falls back to TINFOIL_API_KEY env var if not provided. * @param options - Optional configuration * @returns An AI SDK provider for Tinfoil * * @example * ```typescript * import { createTinfoilAI } from "tinfoil"; * import { generateText } from "ai"; * * // Uses TINFOIL_API_KEY env var * const tinfoil = await createTinfoilAI(); * * // Or pass API key explicitly * const tinfoil = await createTinfoilAI("your-api-key"); * * const { text } = await generateText({ * model: tinfoil("llama3-3-70b"), * prompt: "Hello!", * }); * ``` * * @see https://docs.tinfoil.sh/sdk/javascript-sdk * @see https://sdk.vercel.ai/ - Vercel AI SDK documentation */ export declare function createTinfoilAI(apiKey?: string, options?: CreateTinfoilAIOptions): Promise>; //# sourceMappingURL=ai-sdk-provider.d.ts.map