Skip to content

Commit 39eef6c

Browse files
Fix BYOM model selection for single-match scenarios
1 parent ac07e9e commit 39eef6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uipath_langchain/llm/passthrough_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _get_model_info(
166166
== byo_connection_id.lower()
167167
]
168168

169-
if not byo_connection_id:
169+
if not byo_connection_id and len(matching_models) > 1:
170170
matching_models = [m for m in matching_models if m.get("byomDetails") is None]
171171

172172
if not matching_models:

0 commit comments

Comments
 (0)