UNPKG

@promptbook/core

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

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⁉ */