(sessionPath: string, file: string)
| 30 | const API_PATH = '/api/session-data'; |
| 31 | |
| 32 | function apiUrl(sessionPath: string, file: string): string { |
| 33 | return `${API_PATH}?path=${encodeURIComponent(`${sessionPath}/chat/${file}`)}`; |
| 34 | } |
| 35 | |
| 36 | export async function loadChatHistory(sessionPath: string): Promise<ChatHistoryData | null> { |
| 37 | try { |
no outgoing calls
no test coverage detected