(data?: any)
| 374 | } |
| 375 | |
| 376 | const toChatLogHistoryItem = (data?: any): any | undefined => { |
| 377 | if (!data) { |
| 378 | return undefined |
| 379 | } |
| 380 | return new ChatLogHistoryItem( |
| 381 | data.start_time, |
| 382 | data.finish_time, |
| 383 | data.duration, |
| 384 | data.total_tokens, |
| 385 | data.operate, |
| 386 | data.local_operation, |
| 387 | data.error, |
| 388 | data.message |
| 389 | ) |
| 390 | } |
| 391 | |
| 392 | const toChatLogHistoryItemList = (list: any = []): ChatLogHistoryItem[] => { |
| 393 | const records: Array<ChatLogHistoryItem> = [] |
no outgoing calls
no test coverage detected