| 322 | message: any | undefined |
| 323 | ) |
| 324 | constructor( |
| 325 | start_time?: Date | string, |
| 326 | finish_time?: Date | string, |
| 327 | duration?: number | undefined, |
| 328 | total_tokens?: number | undefined, |
| 329 | operate?: string | undefined, |
| 330 | local_operation?: boolean | undefined, |
| 331 | error?: boolean | undefined, |
| 332 | message?: any | undefined |
| 333 | ) { |
| 334 | this.start_time = getDate(start_time) |
| 335 | this.finish_time = getDate(finish_time) |
| 336 | this.duration = duration |
| 337 | this.total_tokens = total_tokens |
| 338 | this.operate_key = operate |
| 339 | this.operate = t('chat.log.' + operate) |
| 340 | this.local_operation = !!local_operation |
| 341 | this.error = !!error |
| 342 | this.message = message |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | export class ChatLogHistory { |