UNPKG

call-ai

Version:

Lightweight library for making AI API calls with streaming support

5 lines (4 loc) 258 B
import { CallAIOptions, Message, StreamResponse } from "./types.js"; import { getMeta } from "./response-metadata.js"; export { getMeta }; export declare function callAi(prompt: string | Message[], options?: CallAIOptions): Promise<string | StreamResponse>;