Fix schema for ModelChains (#23284)

This commit is contained in:
kevinjwang1
2026-03-20 12:50:15 -07:00
committed by GitHub
parent 05e4ea80ee
commit 86a3a913b5
4 changed files with 44 additions and 3 deletions
+9 -1
View File
@@ -1094,7 +1094,7 @@ const SETTINGS_SCHEMA = {
showInDialog: false,
additionalProperties: {
type: 'array',
ref: 'ModelPolicy',
ref: 'ModelPolicyChain',
},
},
},
@@ -2998,6 +2998,14 @@ export const SETTINGS_SCHEMA_DEFINITIONS: Record<
},
},
},
ModelPolicyChain: {
type: 'array',
description: 'A chain of model policies for fallback behavior.',
items: {
type: 'object',
ref: 'ModelPolicy',
},
},
ModelPolicy: {
type: 'object',
description: