Skip to content

Commit 1ed506a

Browse files
committed
Fix line length issue in bind_tools validation
1 parent 8b59fff commit 1ed506a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/oci/langchain_oci/chat_models/oci_generative_ai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,8 @@ def bind_tools(
13141314
)
13151315
if use_parallel:
13161316
# Validate Llama 3.x doesn't support parallel tool calls (early check)
1317-
if "llama" in self.model_id.lower() and not self._supports_parallel_tool_calls(self.model_id):
1317+
is_llama = "llama" in self.model_id.lower()
1318+
if is_llama and not self._supports_parallel_tool_calls(self.model_id):
13181319
raise ValueError(
13191320
f"Parallel tool calls not supported for {self.model_id}. "
13201321
"Only Llama 4+ models support this feature. "

0 commit comments

Comments
 (0)