UNPKG

generator-begcode

Version:

Spring Boot + Angular/React/Vue in one handy generator

25 lines (24 loc) 532 B
export class DebugLlmReq { time; chatLogs; response; constructor(time, chatLogs, response) { this.time = time; this.chatLogs = chatLogs; this.response = response; } get tokens() { return this.chatLogs.tokens; } toString() { return JSON.stringify(this.toJSON(), null, 2); } toJSON() { return { time: this.time, tokens: this.tokens, response: this.response, chat: this.chatLogs, }; } }