We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b59fff commit 1ed506aCopy full SHA for 1ed506a
libs/oci/langchain_oci/chat_models/oci_generative_ai.py
@@ -1314,7 +1314,8 @@ def bind_tools(
1314
)
1315
if use_parallel:
1316
# 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):
+ is_llama = "llama" in self.model_id.lower()
1318
+ if is_llama and not self._supports_parallel_tool_calls(self.model_id):
1319
raise ValueError(
1320
f"Parallel tool calls not supported for {self.model_id}. "
1321
"Only Llama 4+ models support this feature. "
0 commit comments