(session: ChatSession)
| 39 | } |
| 40 | |
| 41 | export function repairSession(session: ChatSession): ChatSession { |
| 42 | return { |
| 43 | ...session, |
| 44 | messages: session.messages.map(repairAssistantMessage), |
| 45 | }; |
| 46 | } |
| 47 | |
| 48 | export function createSession(): ChatSession { |
| 49 | const now = new Date().toISOString(); |
no outgoing calls
no test coverage detected