UNPKG

ai.libx.js

Version:

Unified API bridge for various AI models (LLMs, image/video generation, TTS, STT) - stateless, edge-compatible

9 lines (8 loc) 350 B
import { BaseAdapter } from './base/BaseAdapter'; import { ChatOptions, ChatResponse, StreamChunk } from '../types'; export declare class AI21Adapter extends BaseAdapter { get name(): string; chat(options: ChatOptions): Promise<ChatResponse | AsyncIterable<StreamChunk>>; private transformMessages; private handleNonStreamResponse; }