Commit graph

10,075 commits

Author SHA1 Message Date
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
Gabriel Luiz Freitas Almeida
1565ad95a3 Add inactive_vertices and VertexDataTypeAPI to VertexBuildTypeAPI 2024-02-23 12:53:12 -03:00
cristhianzl
fb98cc6e51 start fix tests 2024-02-23 12:30:30 -03:00
Gabriel Luiz Freitas Almeida
10fa045063 Refactor getStatusClassName function to handle different build statuses 2024-02-23 12:27:53 -03:00
Gabriel Luiz Freitas Almeida
7fed13eb5a Added gray-status and buildstatus classes 2024-02-23 12:27:17 -03:00
Gabriel Luiz Freitas Almeida
f9aa62f183 Add INACTIVE build status to GenericNode 2024-02-23 10:12:21 -03:00
Gabriel Luiz Freitas Almeida
bd0e5694da Update base_type in RoutingVertex constructor 2024-02-23 10:10:19 -03:00
Gabriel Luiz Freitas Almeida
756a2ea81b Add ShouldRunNext component to langflow routing 2024-02-23 10:09:52 -03:00
Gabriel Luiz Freitas Almeida
3778301762 Refactor graph constants and update vertex types 2024-02-23 10:09:18 -03:00
Gabriel Luiz Freitas Almeida
ca749746ad Refactor vertex type lookup logic in Graph class 2024-02-23 10:08:34 -03:00
Gabriel Luiz Freitas Almeida
50917619f5 Move set cache to the end 2024-02-23 10:03:42 -03:00
Gabriel Luiz Freitas Almeida
afca7dc954 Refactor GoogleSerperAPIWrapperComponent class in GoogleSerperAPIWrapper.py 2024-02-22 23:51:38 -03:00
Gabriel Luiz Freitas Almeida
a4c432a64b Move call to reset InactiveNodes to the end of the function 2024-02-22 23:45:55 -03:00
Gabriel Luiz Freitas Almeida
2a7a5e728a Skip building inactive nodes in buildVertices function 2024-02-22 23:40:05 -03:00
Gabriel Luiz Freitas Almeida
bd2767b1a5 Add setInactiveNodes function to FlowStore 2024-02-22 23:39:13 -03:00
Gabriel Luiz Freitas Almeida
baf5ffb13c Add inactive_vertices attribute and related methods to Graph class 2024-02-22 23:38:19 -03:00
Gabriel Luiz Freitas Almeida
958dad8c8f Add support for inactive vertices in VertexBuildResponse 2024-02-22 23:37:56 -03:00
Gabriel Luiz Freitas Almeida
96f1cc1e59 Set result to None if condition fails 2024-02-22 23:37:19 -03:00
Gabriel Luiz Freitas Almeida
75ee16acb0 Refactor RoutingVertex to handle missing condition and result values 2024-02-22 23:36:02 -03:00
Gabriel Luiz Freitas Almeida
dcf71b7bdf Add VertexStates enum and set_state method 2024-02-22 23:35:34 -03:00
Gabriel Luiz Freitas Almeida
b26797c0fd Conditionally return inactive_vertices 2024-02-22 23:34:45 -03:00
igorrCarvalho
e662932156 Refactor: Remove persist from Chroma docstring 2024-02-22 22:17:47 -03:00
Gabriel Luiz Freitas Almeida
b17bbf064a Add next_vertex_to_build method to Graph class 2024-02-22 19:00:11 -03:00
Gabriel Luiz Freitas Almeida
528c75933f Update VertexBuildResponse schema field name 2024-02-22 18:59:48 -03:00
Gabriel Luiz Freitas Almeida
94c40aa91a implement routing and next_vertex_to_build 2024-02-22 18:58:27 -03:00
Gabriel Luiz Freitas Almeida
0003e4b7e9 Add routing component to vertex types 2024-02-22 18:46:21 -03:00
Gabriel Luiz Freitas Almeida
be7220b561 Add routing component to backend 2024-02-22 18:45:46 -03:00
Gabriel Luiz Freitas Almeida
1c237f2b6e Add ShouldRunNext component 2024-02-22 18:45:19 -03:00
Gabriel Luiz Freitas Almeida
9192d50e72 Remove unnecessary comments and improve result handling in ConversationChainComponent 2024-02-22 18:41:29 -03:00
Gabriel Luiz Freitas Almeida
176f6b1640 Refactor ConversationChainComponent class to handle different types of result objects 2024-02-22 18:41:18 -03:00
Gabriel Luiz Freitas Almeida
58769f587f Rename stop_vertex to component 2024-02-22 18:28:27 -03:00
Gabriel Luiz Freitas Almeida
e3c42d36ba Refactor RoutingVertex to handle successors based on boolean value 2024-02-22 18:26:55 -03:00
Gabriel Luiz Freitas Almeida
8a4e9a7226 Add successors_ids property to Vertex class 2024-02-22 18:26:32 -03:00
Gabriel Luiz Freitas Almeida
a48b497b28 Add vertices_layers attribute and stop_vertex attribute to Graph class 2024-02-22 18:26:09 -03:00
Gabriel Luiz Freitas Almeida
d79c8283a6 Add successors field to VertexBuildResponse 2024-02-22 18:25:38 -03:00
Gabriel Luiz Freitas Almeida
5e30aac399 Add successors to VertexBuildResponse and return only first layer 2024-02-22 18:25:13 -03:00
Gabriel Luiz Freitas Almeida
ac9849013d Add RunnableExecutor component 2024-02-22 18:04:55 -03:00
Gabriel Luiz Freitas Almeida
71de618519 Remove base class limitations 2024-02-22 17:24:59 -03:00
Gabriel Luiz Freitas Almeida
bb732f5264 Fix validation logic for emoji in attributes.py 2024-02-22 17:12:36 -03:00
Gabriel Luiz Freitas Almeida
9cfb03fbc9 Fix styleUtils import and remove unnecessary lines 2024-02-22 17:07:36 -03:00
Gabriel Luiz Freitas Almeida
3a07ad38b0 Add imports and fix duplicate key in dictionary 2024-02-22 17:06:06 -03:00
anovazzi1
e68fdc06c4 Update nodeIconsLucide in styleUtils.ts 2024-02-22 17:03:59 -03:00
anovazzi1
701571b858 Fix build button condition and prevent sending messages during build 2024-02-22 16:43:43 -03:00
Gabriel Luiz Freitas Almeida
63c709ee1d Add PythonFunctionComponent to langflow utilities 2024-02-22 16:38:01 -03:00
Gabriel Luiz Freitas Almeida
8f8b921ead Fix code field visibility in group node template 2024-02-22 16:27:57 -03:00