Skip to content

Commit

Permalink
docs[patch]: Fix bad api ref link (langchain-ai#6208)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Jul 25, 2024
1 parent 88e2bca commit ea9d533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/core_docs/docs/how_to/chat_models_universal_init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This guide assumes familiarity with the following concepts:

`initChatModel` requires `langchain>=0.2.11`. See [this guide](/docs/how_to/installation/#installing-integration-packages) for some considerations to take when upgrading.

See the [initChatModel()](https://v02.api.js.langchain.com/functions/langchain_chat_models_configurable.initChatModel.html) API reference for a full list of supported integrations.
See the [initChatModel()](https://api.js.langchain.com/functions/langchain_chat_models_universal.initChatModel.html) API reference for a full list of supported integrations.

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.
:::
Expand All @@ -38,7 +38,7 @@ import BasicExample from "@examples/models/chat/configurable/basic.ts";
## Inferring model provider

For common and distinct model names `initChatModel()` will attempt to infer the model provider.
See the [API reference](https://v02.api.js.langchain.com/functions/langchain_chat_models_configurable.initChatModel.html) for a full list of inference behavior.
See the [API reference](https://api.js.langchain.com/functions/langchain_chat_models_universal.initChatModel.html) for a full list of inference behavior.
E.g. any model that starts with `gpt-3...` or `gpt-4...` will be inferred as using model provider `openai`.

import InferringProviderExample from "@examples/models/chat/configurable/inferring_model_provider.ts";
Expand Down

0 comments on commit ea9d533

Please sign in to comment.