(reqPath, body, opts)
| 10 | function makeStubProxy() { |
| 11 | const calls = []; |
| 12 | const fn = async (reqPath, body, opts) => { |
| 13 | calls.push({ reqPath, body, opts }); |
| 14 | return { |
| 15 | status: 200, |
| 16 | headers: { 'content-type': 'application/json' }, |
| 17 | stream: null, |
| 18 | json: async () => ({ id: 'msg_1', model: body && body.model, content: [] }), |
| 19 | text: async () => '', |
| 20 | }; |
| 21 | }; |
| 22 | return { fn, calls }; |
| 23 | } |
| 24 |
no outgoing calls
no test coverage detected