fix(docs): json_mode -> json_schema (#32993)

This commit is contained in:
Mason Daugherty
2025-09-17 14:21:34 -04:00
committed by GitHub
parent 8b3f74012c
commit 76d0758007

View File

@@ -668,7 +668,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 14, "execution_count": null,
"id": "df0370e3", "id": "df0370e3",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -685,7 +685,7 @@
} }
], ],
"source": [ "source": [
"structured_llm = llm.with_structured_output(None, method=\"json_mode\")\n", "structured_llm = llm.with_structured_output(None, method=\"json_schema\")\n",
"\n", "\n",
"structured_llm.invoke(\n", "structured_llm.invoke(\n",
" \"Tell me a joke about cats, respond in JSON with `setup` and `punchline` keys\"\n", " \"Tell me a joke about cats, respond in JSON with `setup` and `punchline` keys\"\n",