(response)
| 65 | }; |
| 66 | |
| 67 | const parseApiError = async (response) => { |
| 68 | // Drain the body so the connection isn't left open, but never reflect |
| 69 | // its contents back to the user. |
| 70 | try { |
| 71 | await response.text(); |
| 72 | } catch { |
| 73 | /* ignore */ |
| 74 | } |
| 75 | return buildClientError(response.status); |
| 76 | }; |
| 77 | |
| 78 | export const loadModels = async () => { |
| 79 | if ( |
no test coverage detected