({request})
| 3 | import {Pipe} from '@baseai/core'; |
| 4 | |
| 5 | export const action: ActionFunction = async ({request}) => { |
| 6 | const runOptions = await request.json(); |
| 7 | |
| 8 | // 1. Initiate the Pipe. |
| 9 | // const pipe = new Pipe(getPipeTinyLlama()); |
| 10 | const pipe = new Pipe(getPipeSummary()); |
| 11 | |
| 12 | // 2. Run the pipe |
| 13 | const result = await pipe.run(runOptions); |
| 14 | |
| 15 | // 3. Return the response stringified. |
| 16 | return new Response(JSON.stringify(result)); |
| 17 | }; |
nothing calls this directly
no test coverage detected