UNPKG

@promptbook/vercel

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

14 lines (13 loc) 516 B
import type { createGoogleGenerativeAI } from '@ai-sdk/google'; import type { createOpenAI } from '@ai-sdk/openai'; /** * This is common interface for all v1 Vercel providers * * @public exported from `@promptbook/vercel` */ export type VercelProvider = ReturnType<typeof createOpenAI> | ReturnType<typeof createGoogleGenerativeAI>; /** * ^^^^ * TODO: Is there some way to get the type of the provider directly, * NOT this stupid way via inferring the return type from a specific vercel provider⁉ */