call-ai
Version:
Lightweight library for making AI API calls with streaming support
7 lines (6 loc) • 380 B
TypeScript
import { CallAIOptions, Message, StreamResponse } from "./types.js";
import { getMeta } from "./response-metadata.js";
export declare const VIBES_AUTH_HEADER: "X-VIBES-Token";
export declare function getVibesAuthToken(): string | undefined;
export { getMeta };
export declare function callAi(prompt: string | Message[], options?: CallAIOptions): Promise<string | StreamResponse>;