UNPKG

ai-utils.js

Version:

Build AI applications, chatbots, and agents with JavaScript and TypeScript.

19 lines (18 loc) 508 B
export class AbstractModel { constructor({ settings }) { Object.defineProperty(this, "settings", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.settings = settings; } // implemented as a separate accessor to remove all other properties from the model get modelInformation() { return { provider: this.provider, modelName: this.modelName, }; } }