-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
ogabrielluiz
merged 21 commits into
langflow-ai:main
from
raphaelchristi:feat/add-deepseek-model-component
Jan 17, 2025
Merged
feat: Add DeepSeek Model component #5443
ogabrielluiz
merged 21 commits into
langflow-ai:main
from
raphaelchristi:feat/add-deepseek-model-component
Jan 17, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
4ec3047
to
21d56da
Compare
LGTM |
edwinjosechittilappilly
approved these changes
Jan 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Good Work! @raphaelchristi If possible in future we can collaborate in making this component bit more stable with adding filter for tool calling models. |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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:
src/backend/base/langflow/components/models/__init__.py
: AddedDeepSeekModelComponent
to the import statements and the list of available components. [1] [2]src/backend/base/langflow/components/models/deepseek.py
: Introduced theDeepSeekModelComponent
class with methods for model configuration, fetching models, and building the model.src/backend/tests/unit/components/models/test_deepseek.py
: Added unit tests for theDeepSeekModelComponent
to verify initialization, template structure, model building, model fetching, and error handling.Frontend Changes:
src/frontend/src/icons/DeepSeek/DeepSeekIcon.jsx
: Added the SVG icon component for DeepSeek.src/frontend/src/icons/DeepSeek/index.tsx
: Created a wrapper for the DeepSeek icon to handle dark mode.src/frontend/src/utils/styleUtils.ts
: Imported and included theDeepSeekIcon
in the node icons configuration. [1] [2]These changes collectively integrate the DeepSeek model into the application, providing both backend functionality and frontend representation.