mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 03:09:50 +08:00
Merge remote-tracking branch 'origin/pr/573'
This commit is contained in:
+5
@@ -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: '账号已失效,需重新授权',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user