Merge remote-tracking branch 'origin/pr/573'

This commit is contained in:
fawney19
2026-05-27 01:06:57 +08:00
4 changed files with 130 additions and 4 deletions
@@ -372,6 +372,11 @@ describe('isModelTestableEndpoint', () => {
})
describe('formatModelTestDiagnostic', () => {
it('maps model permission skips to an actionable label', () => {
expect(formatModelTestDiagnostic('key_model_not_allowed'))
.toBe('Key 未允许当前模型,已跳过')
})
it('maps pool account blocked scheduler code to an actionable label', () => {
expect(formatModelTestDiagnostic('pool_account_blocked')).toBe('账号已失效,需重新授权')
})
@@ -41,6 +41,7 @@ const MODEL_TEST_BEARER_INHERITS_PROVIDER_FORMATS = new Set([
])
const MODEL_TEST_DIAGNOSTIC_LABELS: Record<string, string> = {
key_model_not_allowed: 'Key 未允许当前模型,已跳过',
pool_account_blocked: '账号已失效,需重新授权',
}