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
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -369,6 +369,19 @@ customization:
369
369
disable_query_system_prompt: true
370
370
```
371
371
372
+
### Disable model/provider overrides from requests
373
+
374
+
By default, clients may specify `model` and `provider` in `/v1/query` and `/v1/streaming_query` requests to select a model at runtime. You can disable this behavior and enforce the configured defaults by setting:
375
+
376
+
```yaml
377
+
customization:
378
+
disable_query_model_override: true
379
+
```
380
+
381
+
When enabled, requests that include `model` or `provider` will be rejected with HTTP 422 and the following message:
382
+
383
+
"This instance does not support overriding model/provider in the query request (disable_query_model_override is set). Please remove the model and provider fields from your request."
384
+
372
385
## Safety Shields
373
386
374
387
A single Llama Stack configuration file can include multiple safety shields, which are utilized in agent
0 commit comments