diff --git a/pyproject.toml b/pyproject.toml index 6994f209b..30005172d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-langchain" -version = "0.4.20" +version = "0.4.21" description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath_langchain/llm/passthrough_factory.py b/src/uipath_langchain/llm/passthrough_factory.py index d61182348..4e455b67b 100644 --- a/src/uipath_langchain/llm/passthrough_factory.py +++ b/src/uipath_langchain/llm/passthrough_factory.py @@ -166,7 +166,7 @@ def _get_model_info( == byo_connection_id.lower() ] - if not byo_connection_id: + if not byo_connection_id and len(matching_models) > 1: matching_models = [m for m in matching_models if m.get("byomDetails") is None] if not matching_models: diff --git a/uv.lock b/uv.lock index b0d82a03a..7ad436649 100644 --- a/uv.lock +++ b/uv.lock @@ -3297,7 +3297,7 @@ wheels = [ [[package]] name = "uipath-langchain" -version = "0.4.20" +version = "0.4.21" source = { editable = "." } dependencies = [ { name = "aiosqlite" },