Skip to content

Commit 703fce7

Browse files
authored
docs: document that Anthropic supports boolean parallel_tool_calls param in guide (#31122)
1 parent 50fa524 commit 703fce7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/docs/how_to/tool_calling_parallel.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"source": [
77
"# How to disable parallel tool calling\n",
88
"\n",
9-
":::info OpenAI-specific\n",
9+
":::info Provider-specific\n",
1010
"\n",
11-
"This API is currently only supported by OpenAI.\n",
11+
"This API is currently only supported by OpenAI and Anthropic.\n",
1212
"\n",
1313
":::\n",
1414
"\n",
@@ -55,12 +55,12 @@
5555
"import os\n",
5656
"from getpass import getpass\n",
5757
"\n",
58-
"from langchain_openai import ChatOpenAI\n",
58+
"from langchain.chat_models import init_chat_model\n",
5959
"\n",
6060
"if \"OPENAI_API_KEY\" not in os.environ:\n",
6161
" os.environ[\"OPENAI_API_KEY\"] = getpass()\n",
6262
"\n",
63-
"llm = ChatOpenAI(model=\"gpt-4o-mini\", temperature=0)"
63+
"llm = init_chat_model(\"openai:gpt-4.1-mini\")"
6464
]
6565
},
6666
{
@@ -121,7 +121,7 @@
121121
"name": "python",
122122
"nbconvert_exporter": "python",
123123
"pygments_lexer": "ipython3",
124-
"version": "3.11.9"
124+
"version": "3.10.4"
125125
}
126126
},
127127
"nbformat": 4,

0 commit comments

Comments
 (0)