Enforce errors on overriding built-in model providers (#12024)

We receive bug reports from users who attempt to override one of the
three built-in model providers (openai, ollama, or lmstuio). Currently,
these overrides are silently ignored. This PR makes it an error to
override them.

## Summary
- add validation for `model_providers` so `openai`, `ollama`, and
`lmstudio` keys now produce clear configuration errors instead of being
silently ignored
This commit is contained in:
Eric Traut
2026-03-13 22:10:13 -06:00
committed by GitHub
parent d272f45058
commit ae0a6510e1
3 changed files with 72 additions and 4 deletions

View File

@@ -2223,7 +2223,7 @@
"$ref": "#/definitions/ModelProviderInfo"
},
"default": {},
"description": "User-defined provider entries that extend/override the built-in list.",
"description": "User-defined provider entries that extend the built-in list. Built-in IDs cannot be overridden.",
"type": "object"
},
"model_reasoning_effort": {