@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
14 lines (13 loc) • 516 B
TypeScript
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⁉
*/