mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
The Default Model Provider field was a blank text box, so users had to know pydantic-ai's provider names (`openai-chat` vs `openai`) by heart. The field's schema now lists common ones as `examples`, which the connection form renders as suggestions on a text input: any other provider pydantic-ai recognizes can still be typed. An `enum` dropdown would reject providers pydantic-ai adds until a new release of this provider. A test keeps every suggestion resolvable. The suggestions ship with the provider, but the installed pydantic-ai can recognize more. The field's help text and the connection docs now say the list is common choices, not every provider that works. A test also keeps each suggestion among the connection's declared external services, so the form never suggests a vendor the docs and registry don't list. * Keep the model provider help text accurate on the registry and share test lookups The registry's connection builder shows a conn-field's description but not its examples, so the help text now says any provider the installed pydantic-ai recognizes works instead of describing suggestions. The docs paragraph no longer repeats part of the list by hand. The suggestion checks reuse one connection-type lookup and one prefix-to-module mapping, and the two pydantic-ai checks on this field are one test.