mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 18:50:33 +00:00
deepseek, docs: chatdeepseek integration added (#29445)
This commit is contained in:
24
libs/partners/deepseek/README.md
Normal file
24
libs/partners/deepseek/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# langchain-deepseek-official
|
||||
|
||||
This package contains the LangChain integration with the DeepSeek API
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install -U langchain-deepseek-official
|
||||
```
|
||||
|
||||
And you should configure credentials by setting the following environment variables:
|
||||
|
||||
* `DEEPSEEK_API_KEY`
|
||||
|
||||
## Chat Models
|
||||
|
||||
`ChatDeepSeek` class exposes chat models from DeepSeek.
|
||||
|
||||
```python
|
||||
from langchain_deepseek import ChatDeepSeek
|
||||
|
||||
llm = ChatDeepSeek(model="deepseek-chat")
|
||||
llm.invoke("Sing a ballad of LangChain.")
|
||||
```
|
||||
Reference in New Issue
Block a user