UNPKG

scheunemann-interfaces

Version:
26 lines (25 loc) 893 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GptSettingsEntity = void 0; var global_settings_type_enum_1 = require("../enums/global-settings-type.enum"); var GptSettingsEntity = /** @class */ (function () { function GptSettingsEntity(data) { this.active = true; this.createdAt = new Date(); this.id = ''; this.apiKey = ''; this.apiUrl = 'https://api.openai.com/v1'; this.type = global_settings_type_enum_1.EGlobalSettingsType.CHATGPT_CONFIG; this.updatedAt = new Date(); this.endpoints = []; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return GptSettingsEntity; }()); exports.GptSettingsEntity = GptSettingsEntity;