mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-11 22:04:37 +00:00
docs: specify init_chat_model version (#24274)
This commit is contained in:
parent
a7296bddc2
commit
9d0c1d2dc9
@ -15,6 +15,12 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"Make sure you have the integration packages installed for any model providers you want to support. E.g. you should have `langchain-openai` installed to init an OpenAI model.\n",
|
"Make sure you have the integration packages installed for any model providers you want to support. E.g. you should have `langchain-openai` installed to init an OpenAI model.\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
":::\n",
|
||||||
|
"\n",
|
||||||
|
":::info Requires ``langchain >= 0.2.8``\n",
|
||||||
|
"\n",
|
||||||
|
"This functionality was added in ``langchain-core == 0.2.8``. Please make sure your package is up to date.\n",
|
||||||
|
"\n",
|
||||||
":::"
|
":::"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -25,7 +31,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"%pip install -qU langchain>=0.2.7 langchain-openai langchain-anthropic langchain-google-vertexai"
|
"%pip install -qU langchain>=0.2.8 langchain-openai langchain-anthropic langchain-google-vertexai"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -98,6 +98,10 @@ def init_chat_model(
|
|||||||
|
|
||||||
Must have the integration package corresponding to the model provider installed.
|
Must have the integration package corresponding to the model provider installed.
|
||||||
|
|
||||||
|
.. versionadded:: 0.2.7
|
||||||
|
|
||||||
|
.. versionchanged:: 0.2.8
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
model: The name of the model, e.g. "gpt-4o", "claude-3-opus-20240229".
|
model: The name of the model, e.g. "gpt-4o", "claude-3-opus-20240229".
|
||||||
model_provider: The model provider. Supported model_provider values and the
|
model_provider: The model provider. Supported model_provider values and the
|
||||||
|
Loading…
Reference in New Issue
Block a user