()
| 117 | } |
| 118 | |
| 119 | export function getClassifierStatus(): ClassifierStatus { |
| 120 | const testsavant = |
| 121 | testsavantState === 'loaded' ? 'ok' : |
| 122 | testsavantState === 'failed' ? 'degraded' : |
| 123 | 'off'; |
| 124 | const transcript = haikuAvailableCache === null ? 'off' : |
| 125 | haikuAvailableCache ? 'ok' : 'degraded'; |
| 126 | const status: ClassifierStatus = { testsavant, transcript }; |
| 127 | if (isDebertaEnabled()) { |
| 128 | status.deberta = |
| 129 | debertaState === 'loaded' ? 'ok' : |
| 130 | debertaState === 'failed' ? 'degraded' : |
| 131 | 'off'; |
| 132 | } |
| 133 | return status; |
| 134 | } |
| 135 | |
| 136 | // ─── Model download + staging ──────────────────────────────── |
| 137 |
no test coverage detected