scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
29 lines (28 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatGptChoiceEntity = void 0;
var chat_gpt_message_entity_1 = require("./chat-gpt-message.entity");
var ChatGptChoiceEntity = /** @class */ (function () {
// #endregion Properties (3)
// #region Constructors (1)
function ChatGptChoiceEntity(data) {
// #region Properties (3)
this.index = 0;
this.message = new chat_gpt_message_entity_1.ChatGptMessageEntity();
this.finish_reason = '';
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
if (key === 'message') {
this.message = new chat_gpt_message_entity_1.ChatGptMessageEntity(data.message);
}
else {
this[key] = data[key];
}
}
}
}
}
return ChatGptChoiceEntity;
}());
exports.ChatGptChoiceEntity = ChatGptChoiceEntity;