ai-utils.js
Version:
Build AI applications, chatbots, and agents with JavaScript and TypeScript.
23 lines (22 loc) • 649 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractModel = void 0;
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,
};
}
}
exports.AbstractModel = AbstractModel;