(spec)
| 29 | } |
| 30 | |
| 31 | const checkV2Status = async (spec) => { |
| 32 | try { |
| 33 | const response = await modelProviderApi.getModelStatusBySpec(spec) |
| 34 | if (response.data) { |
| 35 | statusMap[spec] = response.data |
| 36 | } |
| 37 | } catch { |
| 38 | statusMap[spec] = { spec, status: 'error', message: '检查失败' } |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | const checkV2Statuses = async (models) => { |
| 43 | for (const model of models || []) { |