You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Model allowlist schema definitions exist without session.model.setAllowedModels",
90
+
);
91
+
}
92
+
93
+
constallowedModelsProperty={
94
+
anyOf: [
95
+
{
96
+
type: "array",
97
+
items: {
98
+
type: "string",
99
+
},
100
+
},
101
+
{
102
+
type: "null",
103
+
},
104
+
],
105
+
description: "Exact model IDs to permit, or null to clear the host restriction.",
106
+
};
107
+
constrequestDescription=
108
+
"Host-supplied exact CAPI model IDs to allow for this running session. The runtime intersects the list with repository `.github/allowed_models.txt` policy. Omit or pass null to clear the host restriction; an explicit empty or disjoint list is rejected.";
109
+
110
+
definitions.ModelSetAllowedModelsRequest={
111
+
type: "object",
112
+
properties: {
113
+
allowedModels: allowedModelsProperty,
114
+
},
115
+
additionalProperties: false,
116
+
description: requestDescription,
117
+
title: "ModelSetAllowedModelsRequest",
118
+
stability: "experimental",
119
+
}asJSONSchema7Definition;
120
+
definitions.ModelSetAllowedModelsResult={
121
+
type: "object",
122
+
properties: {
123
+
allowedModels: {
124
+
type: "array",
125
+
items: {
126
+
type: "string",
127
+
},
128
+
description: "Normalized host allowlist. Omitted when the host restriction was cleared.",
129
+
},
130
+
effectiveAllowedModels: {
131
+
type: "array",
132
+
items: {
133
+
type: "string",
134
+
},
135
+
description:
136
+
"Effective exact IDs or repository policy patterns after applying the host restriction. Omitted by relay clients whose AHP host applies the policy asynchronously.",
137
+
},
138
+
fallbackModel: {
139
+
type: "string",
140
+
description: "Effective deterministic fallback model, when the policy defines one.",
141
+
},
142
+
modelId: {
143
+
type: "string",
144
+
description:
145
+
"Selected session model after reconciling a now-disallowed concrete selection.",
146
+
},
147
+
},
148
+
additionalProperties: false,
149
+
description: "The applied host allowlist and effective session model policy after intersection.",
150
+
title: "ModelSetAllowedModelsResult",
151
+
}asJSONSchema7Definition;
152
+
model.setAllowedModels={
153
+
rpcMethod: "session.model.setAllowedModels",
154
+
description: "Replaces or clears the host-supplied model allowlist for a running session.",
0 commit comments