(body)
| 421 | await context.route(`${SIDECAR_ORIGIN}/**`, async (route) => { |
| 422 | const path = route.request().url().slice(SIDECAR_ORIGIN.length); |
| 423 | const json = (body) => route.fulfill({ |
| 424 | status: 200, |
| 425 | contentType: 'application/json', |
| 426 | body: JSON.stringify(body), |
| 427 | }); |
| 428 | if (path.startsWith('/health')) return json({ status: 'ok' }); |
| 429 | if (path.startsWith('/props')) { |
| 430 | return json({ model_path: 'models/w14-local-stub.gguf', n_ctx: 4096, total_slots: 1 }); |