UNPKG

ai-switcher

Version:

A package which helps you switch between AI APIs using configurations, so that code changes are not required.

7 lines (6 loc) 302 B
import { Message, CompletionOptions } from '../types'; export declare abstract class BaseAIClient { protected abstract apiKey: string; abstract createCompletion(messages: Message[], options?: CompletionOptions): Promise<string>; abstract createEmbedding(text: string): Promise<number[]>; }