Commit graph

11,619 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
4100266aa6 Add DocumentToRecordComponent to convert documents to records 2024-02-25 23:15:41 -03:00
igorrCarvalho
afe0d42dd0 Merge branch 'zustand/io/migration' of github.com:logspace-ai/langflow into zustand/io/migration 2024-02-25 23:07:52 -03:00
igorrCarvalho
883dc9f9d4 Refactor: Change node ring error color 2024-02-25 23:07:42 -03:00
Gabriel Luiz Freitas Almeida
b49a948c1b Fix validation status condition in GenericNode component 2024-02-25 19:07:19 -03:00
Gabriel Luiz Freitas Almeida
a4697e293a Update validation status color 2024-02-25 19:06:38 -03:00
Gabriel Luiz Freitas Almeida
523e8d8ca2 Update status colors in CSS and Tailwind config 2024-02-25 19:06:12 -03:00
Gabriel Luiz Freitas Almeida
515b281248 Fix build status class issue in GenericNode component 2024-02-25 18:56:19 -03:00
Gabriel Luiz Freitas Almeida
6d48479066 Remove unused revertAllVerticesToBuild function 2024-02-25 18:55:51 -03:00
Gabriel Luiz Freitas Almeida
91ff2ce3df Update node colors and names in styleUtils.ts 2024-02-25 18:07:00 -03:00
Gabriel Luiz Freitas Almeida
4a6e15533e Update LLMS references to Models and Specs 2024-02-25 18:06:33 -03:00
Gabriel Luiz Freitas Almeida
d9d2545d9b Refactor build status handling in GenericNode component to use FlowStore 2024-02-25 17:56:31 -03:00
Gabriel Luiz Freitas Almeida
85a3f444dd Add ShouldRunNext component 2024-02-25 12:33:53 -03:00
Gabriel Luiz Freitas Almeida
042ea07977 Refactor TextInput and add TextOutput component 2024-02-25 12:33:29 -03:00
Gabriel Luiz Freitas Almeida
9a4acbffa3 Refactor user CRUD imports and add comments about secret key 2024-02-25 12:19:39 -03:00
Gabriel Luiz Freitas Almeida
09202b36a7 Fix styling issues and add delete icon 2024-02-25 12:18:36 -03:00
Gabriel Luiz Freitas Almeida
4aefcb03a7 Reorder Vertex class assignment 2024-02-25 12:17:47 -03:00
Lucas Oliveira
ff819bcbe9 Small changes 2024-02-24 23:51:04 +01:00
Lucas Oliveira
3c0957e956 Changed size of only chat 2024-02-24 23:37:34 +01:00
Lucas Oliveira
66c973ea8e Fixed play colors 2024-02-24 23:32:46 +01:00
Lucas Oliveira
1ab44024c2 Changed Run Flow button 2024-02-24 23:28:44 +01:00
Lucas Oliveira
9cafc09d6f Fixed message not being displayed 2024-02-24 23:01:36 +01:00
Lucas Oliveira
5a412b33fe Fixed chat not getting message 2024-02-24 22:59:09 +01:00
Lucas Oliveira
db7f5c7582 Fixed button 2024-02-24 22:53:13 +01:00
Lucas Oliveira
2913abb7bf Open chat 2024-02-24 22:36:28 +01:00
Lucas Oliveira
f294d1faac Fixed pause 2024-02-24 22:36:07 +01:00
igorrCarvalho
94755b6781 Refactor: Change Documentation to docs on nodetoolbar 2024-02-24 18:27:07 -03:00
Lucas Oliveira
ddb0465579 Change color of chat icon 2024-02-24 22:23:54 +01:00
Lucas Oliveira
891fbc897b Changed icon 2024-02-24 22:21:23 +01:00
Lucas Oliveira
3e7c776ccf Added visual changes, as pin on toolbar and play button separate from status. 2024-02-24 22:19:52 +01:00
igorrCarvalho
ec8a801827 Refactor: delete node button 2024-02-24 18:10:17 -03:00
igorrCarvalho
8b021fa826 Fix: required icon without margin left when info icon exists 2024-02-24 17:28:05 -03:00
Lucas Oliveira
ee28d18a13 Merge remote-tracking branch 'origin/zustand/io/migration' into ioView 2024-02-24 20:01:54 +01:00
Gabriel Luiz Freitas Almeida
927b5c59d4 Add id and stream_url to ChatMessageType and ChatOutputType 2024-02-23 19:17:34 -03:00
Gabriel Luiz Freitas Almeida
6079461f34 Fix status class for built nodes 2024-02-23 19:16:56 -03:00
Gabriel Luiz Freitas Almeida
1facc44cd0 Update chat message and implement streaming functionality 2024-02-23 19:16:30 -03:00
Gabriel Luiz Freitas Almeida
ed66136f85 Refactor ChatVertex to support message streaming 2024-02-23 19:15:43 -03:00
Gabriel Luiz Freitas Almeida
a8e27bac6d Refactor ContractEdge log_transaction method 2024-02-23 19:15:16 -03:00
Gabriel Luiz Freitas Almeida
4d48805e49 Add SSE endpoint for streaming vertex build 2024-02-23 19:14:48 -03:00
Gabriel Luiz Freitas Almeida
6817651172 Add flow_id parameter to Graph.from_payload() method 2024-02-23 19:14:12 -03:00
Lucas Oliveira
903746d7de Fixed bug when opening io view modal 2024-02-23 22:09:46 +01:00
cristhianzl
1b7d80a373 🐛 fix(parameterComponent): fix key prop in map function to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in InputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in ToggleShadComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in Dropdown component to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in PromptInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in CodeInputComponent to use name instead of index for better uniqueness
🐛 fix(parameterComponent): fix id prop in IntComponent to use name instead of index for better uniqueness
🐛 fix

🔧 chore(dropdownComponent.spec.ts): comment out unused code to improve code readability and maintainability
🔧 chore(floatComponent.spec.ts): comment out unused code to improve code readability and maintainability
🔧 chore(flowPage.spec.ts): comment out unused code to improve code readability and maintainability
🔧 chore(group.spec.ts): comment out unused code to improve code readability and maintainability

🔧 chore(tests): comment out unused code in inputComponent.spec.ts, intComponent.spec.ts, keyPairListComponent.spec.ts, nestedComponent.spec.ts, saveComponents.spec.ts, and toggleComponent.spec.ts to improve code readability and reduce noise
2024-02-23 18:05:39 -03:00
Lucas Oliveira
d192b50f76 Refactored just logic of IOView 2024-02-23 22:00:53 +01:00
cristhianzl
dde6fd6d62 Merge branch 'cz/fixTestsIo' into zustand/io/migration 2024-02-23 17:31:33 -03:00
cristhianzl
795436d1a3 🔥 refactor(genericModal/index.tsx): remove unused imports and code to improve code cleanliness and performance 2024-02-23 17:30:51 -03:00
Gabriel Luiz Freitas Almeida
38ee9fdd89
0.6.7 Adds Dynamic Field Updates (#1458)
* Update docker-compose.yml

Problems with Docker Compose not being able to find the backend

* Bump vite from 4.5.1 to 4.5.2 in /src/frontend

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Refactor: remove flow if there is no changes

* update group node function to reconnect edges when create groupNode

* Remove console.log statements

* Fix disallowed_special parameter in OpenAIEmbeddingsComponent

* Refactor CharacterTextSplitterComponent to use typing and update return value

* Update ChromaComponent configuration

* Bump version to 0.6.7a1 in pyproject.toml

* Add icon support to CustomComponent

* Add icon property to APIClassType

* Add emoji validation to icon field in custom components

* add emoji icon

* Fix: Error: cannot import name 'CreateTrace' from 'langfuse.callback'

* Refactor langflow processing and langfuse callback initialization

* Update version to 0.6.7a2 in pyproject.toml

* Fix: Bring back loading to avoid white page error

* Add dependabot.yml

* Bump actions/checkout from 2 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github/codeql-action from 2 to 3

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/setup-python from 4 to 5

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/cache from 2 to 4

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/setup-node from 3 to 4

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* makes function args not to be sorted by name

* Add field_order property to CustomComponent

* Refactor Template class in base.py

* Update field_order to be an optional list

* Refactor custom component field ordering

* Update prompts.mdx

Update broken link to all page building to complete

* add icon regex

* add isEmoji

* Fix invalid emoji error handling

* Fix invalid emoji validation in Component class

* add logic to icon name

* changing to useCallback function

* Add HuggingFaceInferenceAPIEmbeddingsComponent class

* Update QdrantComponent build method to handle pre-existing vector-stores

* Update python-multipart version

* Update dependencies in pyproject.toml

* Add Python 3.11 support to lint and test workflows

* Refactor import statements in Qdrant.py

* Update dependencies in pyproject.toml

* Fix documentation link and code formatting

* Fix validation of icon field in Component class

* Update imports and deactivate test

* Fixed group nodes appearing at tooltip

* Update imports and type annotations in several components

* Remove Python 3.9 from matrix in test.yml

* refactor: icon fragments functions

* Default display_name to None

* 🔧 chore(base.py): update serialize_display_name method to handle cases where display_name is not set and convert name to title case if title_case is True

* Fix error handling and formatting in component.py and typesStore.ts

* add controlX feature

* Add files via upload

* Fixed groupByFamily

* Add LiteLLMComponent to the project

* Add ChatLiteLLM component to backend

* Update ChatLiteLLM import and add verbose option

* Remove unused code in ChatLiteLLM.py

* Rename LiteLLMComponent to ChatLiteLLMComponent

* Changes some parameters for mypy linting compatibility

* Update cookie settings for login and refresh_token functions

* Update cookie settings for secure access

* Update cookie settings for login and token refresh

* Refactor authentication cookie settings

* Update version to 0.6.7a3 in pyproject.toml

* Fix formatting and import issues

* Import litellm package and update ChatLiteLLMComponent class

* Update version to 0.6.7a3 and fix formatting and import issues (#1445)

* Update version to 0.6.7a3 in pyproject.toml

* Fix formatting and import issues

* Import litellm package and update ChatLiteLLMComponent class

* Update login.py with new auth settings

* Update version to 0.6.7a4 in pyproject.toml

* Update version to 0.6.7a5 in pyproject.toml

* Update Langflow README (#1456)

* Update Langflow README

* Refactor flow creation process

* Update README.md

* Removed some phrases, changed Creating Flows section

* Update README.md with additional project references

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@logspace.ai>

* Add docs for field update, icon, and small fixes (#1459)

* Refactor code formatting and improve error handling in utils.py

* Refactor parameterComponent to include refresh button

* Update Langflow description

* Add new_langflow_demo.gif and remove langflow-demo.gif and langflow-screen.png

* Update image source path in README.md

* Add dynamic options and default value support to CustomComponent class

* Update version number in pyproject.toml

* Add title_case option to CustomComponent

* Refactor HuggingFaceEndpointsComponent imports and handle model_kwargs parameter

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: YoungWook KIM <ukng1024@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: igorrCarvalho <igorsilvabhz6@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Łukasz Gajownik <lukasz.gajownik@ordergroup.pl>
Co-authored-by: Chris Bateman <chris-bateman@users.noreply.github.com>
Co-authored-by: Ricardo Henriques <paxcalpt@gmail.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
2024-02-23 14:29:00 -03:00
Gabriel Luiz Freitas Almeida
cb433f6574
Merge branch 'main' into dev 2024-02-23 14:28:27 -03:00
Gabriel Luiz Freitas Almeida
7c15593d85 Refactor buildVertices function and add getInactiveVertexData function 2024-02-23 12:55:14 -03:00
Gabriel Luiz Freitas Almeida
6acace790e Add removeFromVerticesBuild and revertAllVerticesToBuild methods to FlowStoreType 2024-02-23 12:54:49 -03:00
Gabriel Luiz Freitas Almeida
53ae82f0b9 Add VertexBuildTypeAPI import and refactor handleBuildUpdate function 2024-02-23 12:54:15 -03:00
Gabriel Luiz Freitas Almeida
70bd1d0c2a Refactor getDurationString function to use undefined instead of null 2024-02-23 12:53:45 -03:00