kaxil opened a new pull request, #62818:
URL: https://github.com/apache/airflow/pull/62818

   ## Summary
   
   The LLM model identifier (e.g., `anthropic:claude-sonnet-4-20250514`) was 
previously only configurable via the JSON `extra` field on the connection, 
requiring users to edit raw JSON. This repurposes the connection `schema` field 
as "Model ID" so users can set it directly in the connection form UI.
   
   ## Design
   
   The `schema` field is a natural fit — it's a string field on every Airflow 
connection, was previously hidden for this connection type, and no AI provider 
needs it for its original purpose.
   
   **Priority order** for model resolution:
   1. `model_id` parameter on the hook (highest)
   2. `schema` field on the connection (shown as "Model ID" in the UI)
   3. `extra["model"]` on the connection (legacy, backward compatible)
   
   ## Changes
   
   - **provider.yaml**: Unhide `schema`, relabel as "Model ID", add placeholder
   - **hooks/pydantic_ai.py**: `get_conn()` reads `conn.schema` between 
`model_id` param and `extra["model"]`
   - **docs/connections/pydantic_ai.rst**: Document "Model ID" field and 
backward compatibility
   - **tests**: 3 new tests (schema field, precedence over extra, model_id 
param override)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to