(fetchImpl: ReturnType<typeof vi.fn>)
| 17 | } |
| 18 | |
| 19 | function baseRequest(fetchImpl: ReturnType<typeof vi.fn>) { |
| 20 | return { |
| 21 | origin: ORIGIN, |
| 22 | system: 'rules', |
| 23 | user: 'cards and a question', |
| 24 | fetch: fetchImpl as unknown as Parameters<typeof askModel>[0]['fetch'], |
| 25 | }; |
| 26 | } |
| 27 | |
| 28 | describe('the request body', () => { |
| 29 | it('pins temperature and seed, so a run can be repeated', () => { |