(body: unknown)
| 48 | const TOGETHER_MODELS_URL = 'https://api.together.ai/v1/models' |
| 49 | |
| 50 | const okResponse = (body: unknown) => ({ |
| 51 | ok: true, |
| 52 | status: 200, |
| 53 | statusText: 'OK', |
| 54 | json: vi.fn().mockResolvedValue(body), |
| 55 | }) |
| 56 | |
| 57 | const errorResponse = (status: number, statusText = 'Unauthorized') => ({ |
| 58 | ok: false, |