The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: rename to langchain-deepseek in docs (#29587)
Erick Friis7edfcbb09093
diff --git a/docs/docs/integrations/chat/deepseek.ipynb b/docs/docs/integrations/chat/deepseek.ipynbindex 8d596b13f3..b00408c1af 100644--- a/docs/docs/integrations/chat/deepseek.ipynb+++ b/docs/docs/integrations/chat/deepseek.ipynb@@ -31,7 +31,7 @@"\n","| Class | Package | Local | Serializable | [JS support](https://js.langchain.com/docs/integrations/chat/deepseek) | Package downloads | Package latest |\n","| :--- | :--- | :---: | :---: | :---: | :---: | :---: |\n",- "| [ChatDeepSeek](https://python.langchain.com/api_reference/deepseek/chat_models/langchain_deepseek.chat_models.ChatDeepSeek.html) | [langchain-deepseek-official](https://python.langchain.com/api_reference/deepseek/) | ❌ | beta | ✅ |  |  |\n",+ "| [ChatDeepSeek](https://python.langchain.com/api_reference/deepseek/chat_models/langchain_deepseek.chat_models.ChatDeepSeek.html) | [langchain-deepseek](https://python.langchain.com/api_reference/deepseek/) | ❌ | beta | ✅ |  |  |\n","\n","### Model features\n","| [Tool calling](/docs/how_to/tool_calling) | [Structured output](/docs/how_to/structured_output/) | JSON mode | [Image input](/docs/how_to/multimodal_inputs/) | Audio input | Video input | [Token-level streaming](/docs/how_to/chat_streaming/) | Native async | [Token usage](/docs/how_to/chat_token_usage_tracking/) | [Logprobs](/docs/how_to/logprobs/) |\n",@@ -40,7 +40,7 @@"\n","## Setup\n","\n",- "To access DeepSeek models you'll need to create a/an DeepSeek account, get an API key, and install the `langchain-deepseek-official` integration package.\n",+ "To access DeepSeek models you'll need to create a/an DeepSeek account, get an API key, and install the `langchain-deepseek` integration package.\n","\n","### Credentials\n","\n",@@ -87,7 +87,7 @@"source": ["### Installation\n","\n",- "The LangChain DeepSeek integration lives in the `langchain-deepseek-official` package:"+ "The LangChain DeepSeek integration lives in the `langchain-deepseek` package:"]},{@@ -97,7 +97,7 @@"metadata": {},"outputs": [],"source": [- "%pip install -qU langchain-deepseek-official"+ "%pip install -qU langchain-deepseek"]},{diff --git a/libs/langchain/langchain/chat_models/base.py b/libs/langchain/langchain/chat_models/base.pyindex 47ac09e5af..b6c52312bb 100644--- a/libs/langchain/langchain/chat_models/base.py+++ b/libs/langchain/langchain/chat_models/base.py@@ -417,7 +417,7 @@ def _init_chat_model_helper(return ChatAnthropicVertex(model=model, **kwargs)elif model_provider == "deepseek":- _check_pkg("langchain_deepseek", pkg_kebab="langchain-deepseek-official")+ _check_pkg("langchain_deepseek", pkg_kebab="langchain-deepseek")from langchain_deepseek import ChatDeepSeekreturn ChatDeepSeek(model=model, **kwargs)diff --git a/libs/packages.yml b/libs/packages.ymlindex 9bee05414c..7568581eb0 100644--- a/libs/packages.yml+++ b/libs/packages.yml@@ -365,7 +365,7 @@ packages:repo: sambanova/langchain-sambanovapath: .downloads: 0-- name: langchain-deepseek-official+- name: langchain-deepseekrepo: langchain-ai/langchainpath: libs/partners/deepseekdownloads: 0diff --git a/libs/partners/deepseek/README.md b/libs/partners/deepseek/README.mdindex 2c0e83361b..8d7ecafa80 100644--- a/libs/partners/deepseek/README.md+++ b/libs/partners/deepseek/README.md@@ -1,11 +1,11 @@-# langchain-deepseek-official+# langchain-deepseekThis package contains the LangChain integration with the DeepSeek API## Installation```bash-pip install -U langchain-deepseek-official+pip install -U langchain-deepseek```And you should configure credentials by setting the following environment variables:diff --git a/libs/partners/deepseek/langchain_deepseek/chat_models.py b/libs/partners/deepseek/langchain_deepseek/chat_models.pyindex 01bd674ac7..969e52aecf 100644--- a/libs/partners/deepseek/langchain_deepseek/chat_models.py+++ b/libs/partners/deepseek/langchain_deepseek/chat_models.py@@ -16,11 +16,11 @@ class ChatDeepSeek(BaseChatOpenAI):"""DeepSeek chat model integration to access models hosted in DeepSeek's API.Setup:- Install ``langchain-deepseek-official`` and set environment variable ``DEEPSEEK_API_KEY``.+ Install ``langchain-deepseek`` and set environment variable ``DEEPSEEK_API_KEY``... code-block:: bash- pip install -U langchain-deepseek-official+ pip install -U langchain-deepseekexport DEEPSEEK_API_KEY="your-api-key"Key init args — completion params: