style: llm -> model (#33423)

This commit is contained in:
Mason Daugherty
2025-10-10 13:19:13 -04:00
committed by GitHub
parent dd994b9d7f
commit 291a9fcea1
67 changed files with 586 additions and 572 deletions

View File

@@ -192,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": null,
"id": "af3123ad-7a02-40e5-b58e-7d56e23e5830",
"metadata": {},
"outputs": [],
@@ -203,7 +203,7 @@
"# !pip install -qU langchain langchain-openai\n",
"from langchain.chat_models import init_chat_model\n",
"\n",
"llm = init_chat_model(model=\"gpt-4o\", model_provider=\"openai\")"
"model = init_chat_model(model=\"gpt-4o\", model_provider=\"openai\")"
]
},
{
@@ -216,7 +216,7 @@
"from langgraph.prebuilt import create_react_agent\n",
"\n",
"tools = [tool]\n",
"agent = create_react_agent(llm, tools)"
"agent = create_react_agent(model, tools)"
]
},
{