mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-04 18:13:03 +00:00
test_each_provider_has_expected_ids asserts the exact set of model ids per provider against a snapshot. For the first-party catalogs that is what we want: the snapshot exists so an upstream id typo fails before it silently breaks every agent that references the old id. openai_compatible is different. It is the zero-Python extension point — the README's "Add an OpenAI-compatible provider" section and examples/mistral.yaml.example both tell you to drop a YAML next to the built-ins, and the loader globs the whole directory. So anyone who follows those instructions gets a permanently red test on their fork, for having done the documented thing. The _internal suffix carve-out only covers the one filename we happen to gitignore. Treat the snapshot as a floor for that provider: the built-in ids must all still be present, extra ones are somebody else's provider. The rename this guards against still drops an id, so it still fails, and the assertion names the missing ids instead of printing two large sets to diff by eye. Verified by copying examples/mistral.yaml.example into the catalog directory: red before, green after, and still red when a built-in id is renamed.