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

feat: Add DeepSeek Model component #5443

Merged

Conversation

raphaelchristi
Copy link
Contributor

@raphaelchristi raphaelchristi commented Dec 25, 2024

This pull request adds a DeepSeek model component to Langflow, enabling integration with the DeepSeek API. The component follows the same pattern as the existing OpenAI component and includes:

  • Chat completion functionality
  • Dynamic model fetching from DeepSeek's API
  • JSON mode support
  • Comprehensive parameter controls (temperature, max tokens, etc.)
  • Error handling for API responses
  • OpenAI-compatible interface for seamless integration

This pull request introduces the integration of the DeepSeek model into the backend and frontend of the application. The most important changes include adding the DeepSeek model component, updating the initialization file, creating unit tests for the new component, and updating the frontend to include the DeepSeek icon.

Backend Changes:

Frontend Changes:

These changes collectively integrate the DeepSeek model into the application, providing both backend functionality and frontend representation.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@raphaelchristi raphaelchristi force-pushed the feat/add-deepseek-model-component branch from 4ec3047 to 21d56da Compare December 25, 2024 20:35
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Dec 25, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jan 17, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jan 17, 2025
@edwinjosechittilappilly edwinjosechittilappilly changed the title feat: Add DeepSeek component feat: Add DeepSeek Model component Jan 17, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jan 17, 2025
@edwinjosechittilappilly
Copy link
Collaborator

LGTM

Copy link
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jan 17, 2025
@edwinjosechittilappilly
Copy link
Collaborator

Good Work!

@raphaelchristi If possible in future we can collaborate in making this component bit more stable with adding filter for tool calling models.

@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jan 17, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 17, 2025
@edwinjosechittilappilly edwinjosechittilappilly added this pull request to the merge queue Jan 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2025
@ogabrielluiz ogabrielluiz added this pull request to the merge queue Jan 17, 2025
Merged via the queue into langflow-ai:main with commit 656f9f3 Jan 17, 2025
42 of 44 checks passed
jhpiedrahitao pushed a commit to jhpiedrahitao/langflow that referenced this pull request Jan 24, 2025
* feat: Add DeepSeek component

* Adiciona DeepseekModelComponent ao __init__.py

* [autofix.ci] apply automated fixes

* Add DeepSeek icon and update component files

* Add DeepSeek icon and update all related files

* [autofix.ci] apply automated fixes

* Change DeepSeek icon color to blue (#080c34)

* [autofix.ci] apply automated fixes

* Revert DeepSeek icon color to black

* [autofix.ci] apply automated fixes

* remove: name parameter from DeepSeekModel to avoid backwards compatibility issues

* test: add unit tests for DeepSeek model component with mocks

* fix: correct formatting issues in DeepSeek model tests

* feat: update DeepSeek icon color to #4c6cfc

* fix: make DeepSeek API key field required

* fix: format SecretStrInput to comply with line length limit in DeepSeekModelComponent

* feat: add dark mode support for component icon

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants