UNPKG

workers-ai-provider

Version:

Workers AI Provider for the vercel AI SDK

20 lines (19 loc) 918 B
import { a as ProviderPlugin } from "./gateway-delegate-D_zkIp5r.mjs"; //#region src/openai.d.ts /** * OpenAI-wire provider plugin for the gateway delegate. Pass to * `createGatewayDelegate({ providers: [openai] })` to handle every * OpenAI-compatible provider in one go — `openai/…`, plus the OpenAI-compatible * long tail (`deepseek/…`, `xai/…`, `groq/…`, `mistral/…`, `perplexity/…`, * `openrouter/…`, `cohere/…`, …). The registry routes each slug to its gateway * provider id; this plugin only supplies the response parser. * * Requires `@ai-sdk/openai` (an optional peer dependency — install it yourself). * * Uses `.chat()` (Chat Completions) deliberately: AI SDK v6's bare `openai()` * defaults to the Responses API, which the AI Gateway run catalog does not serve. */ declare const openai: ProviderPlugin; //#endregion export { openai }; //# sourceMappingURL=openai.d.mts.map