mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 07:35:18 +00:00
docs: document that Anthropic supports boolean parallel_tool_calls param in guide (#31122)
This commit is contained in:
parent
50fa524a6d
commit
703fce7972
@ -6,9 +6,9 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# How to disable parallel tool calling\n",
|
"# How to disable parallel tool calling\n",
|
||||||
"\n",
|
"\n",
|
||||||
":::info OpenAI-specific\n",
|
":::info Provider-specific\n",
|
||||||
"\n",
|
"\n",
|
||||||
"This API is currently only supported by OpenAI.\n",
|
"This API is currently only supported by OpenAI and Anthropic.\n",
|
||||||
"\n",
|
"\n",
|
||||||
":::\n",
|
":::\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -55,12 +55,12 @@
|
|||||||
"import os\n",
|
"import os\n",
|
||||||
"from getpass import getpass\n",
|
"from getpass import getpass\n",
|
||||||
"\n",
|
"\n",
|
||||||
"from langchain_openai import ChatOpenAI\n",
|
"from langchain.chat_models import init_chat_model\n",
|
||||||
"\n",
|
"\n",
|
||||||
"if \"OPENAI_API_KEY\" not in os.environ:\n",
|
"if \"OPENAI_API_KEY\" not in os.environ:\n",
|
||||||
" os.environ[\"OPENAI_API_KEY\"] = getpass()\n",
|
" os.environ[\"OPENAI_API_KEY\"] = getpass()\n",
|
||||||
"\n",
|
"\n",
|
||||||
"llm = ChatOpenAI(model=\"gpt-4o-mini\", temperature=0)"
|
"llm = init_chat_model(\"openai:gpt-4.1-mini\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -121,7 +121,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.9"
|
"version": "3.10.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user