Skip to content

Commit

Permalink
docs: rename to langchain-deepseek in docs (#29587)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Feb 4, 2025
1 parent 04e8f3b commit 7edfcbb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/docs/integrations/chat/deepseek.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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 | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-deepseek-official?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-deepseek-official?style=flat-square&label=%20) |\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 | ✅ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain-deepseek?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-deepseek?style=flat-square&label=%20) |\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",
Expand All @@ -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",
Expand Down Expand Up @@ -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:"
]
},
{
Expand All @@ -97,7 +97,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install -qU langchain-deepseek-official"
"%pip install -qU langchain-deepseek"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain/langchain/chat_models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ChatDeepSeek

return ChatDeepSeek(model=model, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion libs/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ packages:
repo: sambanova/langchain-sambanova
path: .
downloads: 0
- name: langchain-deepseek-official
- name: langchain-deepseek
repo: langchain-ai/langchain
path: libs/partners/deepseek
downloads: 0
Expand Down
4 changes: 2 additions & 2 deletions libs/partners/deepseek/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# langchain-deepseek-official
# langchain-deepseek

This 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:
Expand Down
4 changes: 2 additions & 2 deletions libs/partners/deepseek/langchain_deepseek/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-deepseek
export DEEPSEEK_API_KEY="your-api-key"
Key init args — completion params:
Expand Down

0 comments on commit 7edfcbb

Please sign in to comment.