gopidesupavan commented on code in PR #67788:
URL: https://github.com/apache/airflow/pull/67788#discussion_r3329534204
##########
providers/common/ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py:
##########
@@ -171,6 +172,17 @@ def _provider_factory(pname: str) -> Any:
self._model = infer_model(model_name)
return self._model
+ def _get_conn_if_model_configured(self) -> Model | None:
+ """Return the hook model only when the hook or connection explicitly
configures one."""
+ if self.model_id:
+ return self.get_conn()
+
+ conn = self.get_connection(self.llm_conn_id)
Review Comment:
updated
--
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]