()
| 282 | } |
| 283 | |
| 284 | export function createTextCompleteHandler() { |
| 285 | return async ( |
| 286 | _input: { sessionID: string; messageID: string; partID: string }, |
| 287 | output: { text: string }, |
| 288 | ) => { |
| 289 | output.text = stripHallucinationsFromString(output.text) |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | export function createEventHandler(state: SessionState, logger: Logger) { |
| 294 | return async (input: { event: any }) => { |
no test coverage detected