Models list response from Copilot API.
(models: string[] = ["gpt-5", "claude-sonnet-4"])
| 42 | |
| 43 | /** Models list response from Copilot API. */ |
| 44 | function modelsResponse(models: string[] = ["gpt-5", "claude-sonnet-4"]): Response { |
| 45 | return jsonResponse({ data: models.map((id) => ({ id })) }); |
| 46 | } |
| 47 | |
| 48 | // Helper to mock globalThis.fetch without needing the `preconnect` property. |
| 49 | function mockFetch( |
no test coverage detected