Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: No Document for DeepSeek with LangChain #29032

Closed
2 tasks done
alm0ra opened this issue Jan 5, 2025 · 3 comments
Closed
2 tasks done

DOC: No Document for DeepSeek with LangChain #29032

alm0ra opened this issue Jan 5, 2025 · 3 comments
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder

Comments

@alm0ra
Copy link

alm0ra commented Jan 5, 2025

URL

https://www.deepseek.com/

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

i have see no document for using langchain and deepseek

is there any way to use with this model?

Idea or request for content:

No response

@dosubot dosubot bot added the 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder label Jan 5, 2025
@Nydaym
Copy link

Nydaym commented Jan 9, 2025

You can use OpenAI-compatible mode to utilize Deepseek

@Shajeel-Afzal
Copy link

@alm0ra did you find any solution? I also want to integrate DeepSeek in my applications that are using LangChain!

@alm0ra
Copy link
Author

alm0ra commented Jan 16, 2025

@Shajeel-Afzal yes , integrated easily

from django.conf import settings
from langchain_openai.chat_models import ChatOpenAI


class DeepSeekService:
    def __init__(self):
        self.llm = ChatOpenAI(
            model="deepseek-chat",
            api_key=settings.DEEPSEEK_API_KEY,
            openai_api_base="https://api.deepseek.com",
        )

@alm0ra alm0ra closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Projects
None yet
Development

No branches or pull requests

3 participants