UNPKG

plugai

Version:

PlugAI is a library that provides interfaces to various AI models like Gemini, DeepSeek, and OpenAI.

13 lines (10 loc) 284 B
export abstract class BaseModel { protected apiKey: string; constructor(apiKey: string) { if (new.target === BaseModel) { throw new Error("Cannot instantiate an abstract class."); } this.apiKey = apiKey; } abstract request(inputData: any): Promise<any>; }