Commit graph

11,619 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
7a82519262 🐛 fix(loading.py): import handle_partial_variables function to fix NameError when using it in instantiate_prompt function
🐛 fix(utils.py): add handle_partial_variables function to handle partial variables in prompt formatting
2023-08-04 00:09:39 -03:00
Gabriel Luiz Freitas Almeida
3ce502f298 🐛 fix(types.py): fix prompt template formatting to handle missing artifacts gracefully 2023-08-04 00:07:49 -03:00
Gabriel Luiz Freitas Almeida
bc69e7ae48 🐛 fix(base.py): refactor database engine creation and retrieval to use a singleton pattern for better performance and maintainability
 feat(base.py): add support for LANGFLOW_DATABASE_URL environment variable to override the database URL configuration
2023-08-04 00:06:57 -03:00
Gabriel Luiz Freitas Almeida
b0346bd405 🔧 chore(main.py): import Engine from langflow.database.base to fix missing reference error
 feat(main.py): add Engine.update as a startup event to update the engine on app startup
2023-08-04 00:05:43 -03:00
Gabriel Luiz Freitas Almeida
c64d469a83 🔧 chore(__main__.py): remove unused database_url parameter and related code for simplification
🔧 chore(__main__.py): remove unused env_file parameter and related code for simplification
🔧 chore(__main__.py): remove unused imports and variables for cleaner code
🔧 chore(__main__.py): remove unused load_params function for code cleanup
2023-08-04 00:05:03 -03:00
Gabriel Luiz Freitas Almeida
0a5ad3b06d refactor settings 2023-08-04 00:04:35 -03:00
anovazzi1
4aa6810af6 fix(exportModal/index.tsx): add state for invalidName to handle invalid flow names in the export modal
feat(exportModal/index.tsx): pass invalidName state and setInvalidName function as props to EditFlowSettings component to handle invalid flow names in the export modal
2023-08-03 18:40:17 -03:00
anovazzi1
d2c2fe6db0 added some types in problematic points 2023-08-03 18:35:13 -03:00
gustavoschaedler
f3174033ed 🔒 chore(auth.py): refactor authenticate_user function to use database session instead of fake_db for authentication
🔒 chore(auth.py): refactor get_current_user function to use database session instead of fake_users_db for retrieving user information

🔒 chore(auth.py): refactor get_current_active_user function to use database session instead of fake_users_db for retrieving user information

🔒 chore(user.py): refactor get_user function to use database session instead of fake_users_db for retrieving user information

🔒 chore(login.py): refactor login_for_access_token function to use database session instead of fake_users_db for authentication and token creation

🔒 feat(models.py): add User model to represent user data in the database

🔒 feat(base_control.py): add BaseControl model to represent common control fields in database models
2023-08-03 21:49:31 +01:00
Igor Carvalho
1c74ad7a65 Fix more type errors 2023-08-03 17:46:55 -03:00
gustavoschaedler
4b23eda096 Merge branch 'python_custom_node_component' into authentication 2023-08-03 20:21:19 +01:00
Cristhian Zanforlin Lousa
75e25ad67f Merge branch 'dev' into bugfix-eventprop 2023-08-03 15:30:39 -03:00
Cristhian Zanforlin Lousa
9d3018ed62 Merge branch 'dev' into bugfix-eventprop 2023-08-03 15:29:59 -03:00
Gabriel Luiz Freitas Almeida
dc8097ebd7 🔧 fix(types.py): add exception handling when evaluating field_value using ast.literal_eval to prevent potential errors
🔀 chore(types.py): import ast and contextlib modules for future use
2023-08-03 15:28:15 -03:00
Gabriel Luiz Freitas Almeida
18949de603 🐛 fix(base.py): handle parsing of code type values in Vertex class to prevent errors and improve error logging 2023-08-03 15:27:43 -03:00
Gabriel Luiz Freitas Almeida
d1657eb9e7 🔥 refactor(endpoints.py): remove unused imports and endpoints
The following changes were made:
- Removed unused imports from the file
- Removed the unused `get_load_custom_component_from_path` endpoint
- Removed the unused `get_load_custom_component_from_path_test` endpoint
2023-08-03 14:32:00 -03:00
Gabriel Luiz Freitas Almeida
6fbf7f7a54 🐛 fix(base.py): skip values with show == False and key != "code" when iterating over template_dict to improve filtering logic 2023-08-03 14:29:31 -03:00
Gabriel Luiz Freitas Almeida
ee63e5432d 🐛 fix(directory_reader.py): fix the name of the custom component to always be "CustomComponent" for consistency
🐛 fix(directory_reader.py): add the output types of the custom component to the component template to ensure correct behavior
🐛 fix(types.py): add the output types of the custom component to the component template to ensure correct behavior
2023-08-03 14:22:20 -03:00
Dave Morris
ff71d10ff5
Update docker-compose.yml to use the correct default langflow port 2023-08-03 12:09:10 -05:00
Gabriel Luiz Freitas Almeida
c11204d3c5 🔧 fix(directory_reader.py): change component name from snake_case to CamelCase for better UI display
📝 chore(directory_reader.py): add comments to explain the purpose of changing the component name
2023-08-03 13:48:57 -03:00
Gabriel Luiz Freitas Almeida
8db39dbb30 fix: 🐛 fixes condition in release workflow 2023-08-03 12:49:49 -03:00
Gabriel Luiz Freitas Almeida
9d3ea4f779 🔖 chore(pyproject.toml): bump version from 0.4.0 to 0.4.1 for langflow package 2023-08-03 11:47:40 -03:00
Gabriel Luiz Freitas Almeida
d90b6c2691 🐛 fix(types.py): change update_display_name_and_description function name to update_attributes to reflect its purpose more accurately
🐛 fix(component.py): change field_config key to beta in template_config dictionary to match the expected key
2023-08-03 11:43:18 -03:00
gustavoschaedler
2fa7810ff8 Merge branch 'dev' into authentication 2023-08-03 15:31:24 +01:00
anovazzi1
2cc74f2360 refactor(ModalField): remove unused 'id' prop to improve code readability and maintainability 2023-08-02 22:45:26 -03:00
anovazzi1
c1fc501e62 refactor(NodeModal): remove unnecessary id attribute from input element
The id attribute was not being used and was unnecessary, so it was removed to simplify the code.
2023-08-02 22:44:41 -03:00
anovazzi1
5afc10f721 update validateNode function to use handle id as JSON 2023-08-02 22:39:42 -03:00
anovazzi1
3a185d915d fix(reactflowUtils.ts): import Edge from reactflow to fix type error
refactor(reactflowUtils.ts): update updateIds function to handle changes in edge sourceHandle and targetHandle properties
2023-08-02 22:31:47 -03:00
anovazzi1
db473f6f0d migrate isValidConnection to handle in JSON format 2023-08-02 22:23:16 -03:00
Gabriel Luiz Freitas Almeida
f4829bf21d 🔀 chore(base.py): import SQLDatabaseChain from langchain_experimental.sql with type ignore to suppress type checking error 2023-08-02 22:12:45 -03:00
Gabriel Luiz Freitas Almeida
d397f4457f 🔀 merge(base.py): add SQLDatabaseChain to the ChainCreator's type_dict to enable support for SQL database chains
📦 chore(pyproject.toml): add langchain-experimental package as a dependency
2023-08-02 22:05:52 -03:00
anovazzi1
32bcb08bdb fix(reactflowUtils.ts): refactor cleanEdges function to use JSON.parse and JSON.stringify for targetHandle and sourceHandle variables to improve readability and maintainability 2023-08-02 21:41:30 -03:00
anovazzi1
19b5a05af0 fix(reactflowUtils.ts): import Edge from reactflow to fix type error and improve code semantics
feat(reactflowUtils.ts): add getConnectedNodes function to retrieve connected nodes based on an edge
fix(styleUtils.ts): remove unused getConnectedNodes function
2023-08-02 21:27:13 -03:00
Igor Carvalho
565a62d87c remove console.log 2023-08-02 19:09:14 -03:00
Igor Carvalho
5e65397773 refactor: Reduce errors on types 2023-08-02 19:08:39 -03:00
Gabriel Luiz Freitas Almeida
84c2d5d3c8
Adds Custom Components and documentation (#704) 2023-08-02 16:09:15 -03:00
Gabriel Luiz Freitas Almeida
81f195e8da 🔧 chore(constants.py): remove unused classes "Runnable" and "Generic" from CLASSES_TO_REMOVE list
🔇 chore(test_chains_template.py): comment out unused test_chains_settings test function
2023-08-02 15:57:45 -03:00
Gabriel Luiz Freitas Almeida
22f75bf804 🔺 chore(pyproject.toml): update langchain dependency version to ^0.0.250 for compatibility and bug fixes 2023-08-02 15:55:26 -03:00
Gabriel Luiz Freitas Almeida
5d75d46aef 🐛 fix(loading.py): handle invalid JSON strings in kwargs by removing the key from params 2023-08-02 15:54:57 -03:00
Igor Carvalho
a4319eaa43 Merge dev into types_refactor 2023-08-02 14:30:10 -03:00
Lucas Oliveira
214aef76bf Fixed formModal 2023-08-02 12:07:45 -03:00
Lucas Oliveira
3733743da3 Revert "Fixed bug of fastavro version and form modal memory keys"
This reverts commit f5cb771018.
2023-08-02 12:07:21 -03:00
Lucas Oliveira
4254d5d751 Revert "poetry lock fixed"
This reverts commit aa33cbd6cf.
2023-08-02 12:07:16 -03:00
Lucas Oliveira
dbcd613251 Revert "Removed unused console log"
This reverts commit da7391e783.
2023-08-02 12:07:08 -03:00
Cristhian Zanforlin Lousa
4f2fc11045 🔥 refactor(App.tsx): remove unused code related to preventing control+backspace event
The code related to preventing the control+backspace event in the application was removed as it was no longer needed.
2023-08-02 11:52:33 -03:00
Lucas Oliveira
da7391e783 Removed unused console log 2023-08-02 11:44:35 -03:00
gustavoschaedler
23a26319e3 Merge branch 'dev' into python_custom_node_component 2023-08-02 15:42:08 +01:00
Lucas Oliveira
aa33cbd6cf poetry lock fixed 2023-08-02 11:40:35 -03:00
Lucas Oliveira
f5cb771018 Fixed bug of fastavro version and form modal memory keys 2023-08-02 11:39:17 -03:00
Gabriel Luiz Freitas Almeida
968fef6dfa ⬆️ chore(pyproject.toml): add fastavro as a dependency in the project
📦 feat(pyproject.toml): add fastavro as a new dependency to enable working with Avro data format
2023-08-02 10:58:07 -03:00