Commit graph

10,681 commits

Author SHA1 Message Date
Lucas Oliveira
bb6578e0a5 Fixed classes of sidebar to make it more like the main page 2024-06-04 14:21:12 -03:00
Lucas Oliveira
ee705b548f Added icons 2024-06-04 11:54:32 -03:00
Lucas Oliveira
98e40f25e6 Fixed id scrolling when clicking from Store 2024-06-04 11:52:08 -03:00
Lucas Oliveira
cad4c508a9 Fixed button layout to have loading the same size as the original button 2024-06-04 11:35:37 -03:00
Lucas Oliveira
5b83bde64e Returned loader to default, fixed buttons not working with asChild 2024-06-04 11:17:17 -03:00
Lucas Oliveira
2c851a9d5c Fix naming of endpoint 2024-06-04 11:09:00 -03:00
Lucas Oliveira
f1aaa162e2 Changed strategy to not have to apply classes to different div elements, not breaking the other buttons. 2024-06-04 10:49:36 -03:00
Lucas Oliveira
c36053dc55 Fixed button not being able to handle multiple children when asChild is done 2024-06-04 10:26:52 -03:00
Lucas Oliveira
9eacd3f9d6 Fixed sidebar button to not look strange with the new Button classes 2024-06-04 10:15:24 -03:00
Lucas Oliveira
b5d9e0608d Fixed classes on Button to work with all of the current buttons 2024-06-04 10:15:02 -03:00
Lucas Oliveira
59c8eba132 Fixed Button classes to allow loading 2024-06-04 09:58:44 -03:00
Lucas Oliveira
3d8a0acbc1 Fixed sidebar buttons not being different when path is equal 2024-06-04 09:37:23 -03:00
Lucas Oliveira
eefac9ef48 Added Store API Key configuration on General Settings page 2024-06-04 09:20:55 -03:00
Lucas Oliveira
65ae9f04e4 Fixed bottom padding on settings pages 2024-06-04 09:20:32 -03:00
Lucas Oliveira
1f2cd32340 Modularized Loading on buttons 2024-06-04 09:12:28 -03:00
Lucas Oliveira
5b2791a2c4 Formatting 2024-06-04 08:19:10 -03:00
Lucas Oliveira
6874f380f9 Merge remote-tracking branch 'origin/dev' into fix/minor_bugs 2024-06-03 17:04:42 -03:00
ogabrielluiz
23d3c45a1b refactor: Update Dockerfile and render.yaml for pre-release deployment
The Dockerfile `render.pre-release.Dockerfile` has been added to the repository, which sets the base image to `langflowai/langflow:1.0-alpha`. Additionally, the `render.yaml` file has been modified to use the new Dockerfile path `./docker/render.pre-release.Dockerfile` for the `langflow` web service. This change ensures that the pre-release version of the application is deployed correctly.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-03 14:05:33 -03:00
ogabrielluiz
25b99ef590 📝 (README.md): Update deployment links to point to the correct branches for deployment purposes 2024-06-03 14:03:23 -03:00
Gabriel Luiz Freitas Almeida
d2f144829d
Update uvicorn server configuration and add pool config (#2052)
The Makefile has been updated to add support for specifying the number
of workers for the uvicorn server. The pyproject.toml file has also been
updated to upgrade the uvicorn dependency to version 0.30.0.
Additionally, the DatabaseService class in service.py has been
refactored to use the pool_size and max_overflow settings from the
SettingsService. This change allows for better control over the number
of connections in the connection pool and the number of connections that
can be opened beyond the pool size. The create_engine function has also
been modified to pass the pool_size and max_overflow parameters.
2024-06-03 09:10:02 -07:00
ogabrielluiz
5ea2699b29 refactor: Update DatabaseService to use settings_service for database URL 2024-06-03 13:08:12 -03:00
ogabrielluiz
ced4fd0800 refactor: Update OpenAIModelComponent to use float type for temperature parameter
The OpenAIModelComponent class in OpenAIModel.py has been updated to use the float type for the temperature parameter instead of the Optional[float] type. This change ensures consistency and improves code readability. The default value for the temperature parameter remains unchanged at 0.1.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-03 13:05:37 -03:00
ogabrielluiz
06df938c00 refactor: Update DatabaseService to use settings_service for database URL
The DatabaseService class in service.py has been updated to use the settings_service object for retrieving the database URL instead of directly passing it as a parameter. This change improves code organization and ensures consistency with other services that rely on the settings_service. The necessary modifications have been made in both the DatabaseService class and the DatabaseServiceFactory class.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-03 13:04:56 -03:00
ogabrielluiz
099d44bad0 refactor: Update database service to use pool_size and max_overflow settings
The DatabaseService class in service.py has been updated to use the pool_size and max_overflow settings from the SettingsService. This change allows for better control over the number of connections in the connection pool and the number of connections that can be opened beyond the pool size. The commit also includes necessary modifications to the create_engine function to pass the pool_size and max_overflow parameters.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-03 13:02:49 -03:00
ogabrielluiz
6033c14875 🔧 (Makefile): Add support for specifying the number of workers for uvicorn server
⬆️ (pyproject.toml): Upgrade uvicorn dependency to version 0.30.0
2024-06-03 12:56:54 -03:00
ogabrielluiz
5fe568cc6c refactor: Update factory_restart_space.py to use environment variable for Hugging Face API token 2024-06-03 09:54:47 -03:00
ogabrielluiz
aafaa166b4 chore: Update package versions in pyproject.toml files 2024-06-03 09:35:57 -03:00
ogabrielluiz
bbe792b3e1 refactor: Update process_tweaks function to include stream parameter
The process_tweaks function in endpoints.py has been updated to include a new stream parameter. This change allows for more flexibility in processing tweaks based on the stream value. The commit also includes necessary modifications to the simple_run_flow function to pass the stream parameter to the process_tweaks function.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-03 09:31:40 -03:00
Lucas Oliveira
6a868729b8 Made Folders more pleasing 2024-06-03 00:23:36 -03:00
Lucas Oliveira
46872feb48 Passed duplicate flow function to main page 2024-06-03 00:16:11 -03:00
Lucas Oliveira
aa568f551a Fixed Endpoint Name labeling 2024-06-03 00:00:28 -03:00
Lucas Oliveira
4b4800defb Fixed node toolbar allowing moving the nodes 2024-06-02 23:58:25 -03:00
Lucas Oliveira
cbe2a8ad75 Fixed tooltip that does not need removal of portal 2024-06-02 23:56:36 -03:00
Lucas Oliveira
06a568f114 Disabled accordion when it is empty 2024-06-02 23:55:20 -03:00
Lucas Oliveira
3b8e72ff1a Removed shadow from card 2024-06-02 23:18:24 -03:00
Lucas Oliveira
22775cc005 Added description column to advanced tab 2024-06-02 23:16:04 -03:00
Lucas Oliveira
6e5530336c Merge remote-tracking branch 'origin/dev' into fix/minor_bugs 2024-06-02 23:00:27 -03:00
ogabrielluiz
758d6af7ef refactor: Update factory_restart_space.py to use environment variable for Hugging Face API token
The factory_restart_space.py script has been updated to use the value of the HUGGINFACE_API_TOKEN environment variable for the HfApi client token. This change improves security by avoiding hardcoding the token in the script and allows for flexibility in different environments.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-02 20:36:59 -03:00
Rodrigo
aca541e97b Default temperature parameter enhancement 2024-06-01 23:34:08 -03:00
Lucas Oliveira
d2cb5452c9 Fixed scrolling not working in global variables dropdown 2024-05-31 21:24:12 -03:00
Lucas Oliveira
ba779d5ad0 Fixed save with my api keys coming as default 2024-05-31 21:15:44 -03:00
Lucas Oliveira
58008015f5 Implemented unselect on escape 2024-05-31 21:07:00 -03:00
Lucas Oliveira
81f61201be Merge remote-tracking branch 'origin/dev' into fix/minor_bugs 2024-05-31 20:55:38 -03:00
Gabriel Luiz Freitas Almeida
fce2ca3a9c
Update docker-build.yml 2024-05-31 13:43:16 -07:00
Gabriel Luiz Freitas Almeida
0b584fe731
refactor: Update getCurlRunCode function to export it as a named export (#2037)
The getCurlRunCode function in get-curl-code.tsx has been updated to export it as a named export instead of the default export. This change improves the code organization and allows for better import statements in other modules.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-05-31 11:21:51 -07:00
ogabrielluiz
20af601ad7 refactor: Update getCurlRunCode function to export it as a named export
The getCurlRunCode function in get-curl-code.tsx has been updated to export it as a named export instead of the default export. This change improves the code organization and allows for better import statements in other modules.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-05-31 15:21:02 -03:00
Gabriel Luiz Freitas Almeida
5e2f4b8f83
Add webhook endpoint, and other fixes (#1766)
* Update FastAPI app configuration in main.py

* Add webhook endpoint

* Add Observer model and related changes to database models

* Update refresh button text in ParameterComponent

* Update database models and main.py, and add webhook endpoint and utils for flow model

* Add WebhookComponent to langflow data components

* Update webhook component names in flow data and remove unused code in edge/base.py and graph/base.py

* 🐛 (endpoints.py): fix an issue where the user_id was not being correctly assigned based on the api_key_user or flow object

* 📝 (endpoints.py): Update documentation for the webhook_run_flow endpoint to provide clearer information on its purpose, arguments, and return value. Remove outdated request JSON structure and example request sections. Add information on the arguments and exceptions raised for better clarity.

* chore: Remove unnecessary trailing commas in code files

* feat: Add yield statement to get_lifespan function

* feat: Update webhook columns revision ID

* Refactor import statements for OpenAI conversational agent

* refactor(constants.ts): remove unused tabsArray function and update function name to createTabsArray for clarity
feat(constants.ts): add support for including webhook code in tabs array based on flow webhook property
feat(index.tsx): update function calls to use new createTabsArray function and include webhook code in tabs array based on flow webhook property

refactor(utils.ts): remove trailing commas in function parameters to improve code consistency and readability
feat(utils.ts): add support for including webhook cURL code and tweaks code in tabs array creation for better code organization and presentation

* chore: Update folder_id parameter type to str in API endpoints

* feat: Handle invalid JSON payload in WebhookComponent

The code changes in `Webhook.py` modify the `build` method of the `WebhookComponent` class. If an invalid JSON payload is provided, instead of raising a `ValueError`, the code now handles the exception by creating a default payload with the provided data. The commit also includes a message that describes the invalid JSON payload for better error tracking.

Note: This commit message follows the convention used in the recent user commits.

* refactor: Remove unnecessary code in main.py

* refactor: Update Alembic revision IDs for webhook columns

The Alembic revision IDs for adding webhook columns have been updated to reflect the latest changes. This ensures consistency and proper tracking of the database schema modifications.

Note: The commit message has been generated based on the provided code changes and recent commits.

* 🐛 (endpoints.py): Fix handling of flow_id_or_name variable to correctly identify flow ID or endpoint name for running a flow. Improve error handling for invalid UUID strings and flow not found scenarios.

* refactor: Handle invalid JSON payload in WebhookComponent

The code changes in `Webhook.py` modify the `build` method of the `WebhookComponent` class. If an invalid JSON payload is provided, instead of raising a `ValueError`, the code now handles the exception by creating a default payload with the provided data.

* refactor: Update get_flow_by_id function to handle None flow_id parameter

The get_flow_by_id function in utils.py has been updated to handle the case where the flow_id parameter is None. Previously, the function would raise an exception if flow_id was not provided. Now, if flow_id is None, the function returns None instead of querying the database. This change improves the robustness of the function and allows for more flexible usage.

Note: The commit message has been generated based on the provided code changes and recent commits.

* 📝 (endpoints.py): Add import statement for get_flow_by_id_or_endpoint_name function
📝 (flow.py): Add get_flow_by_id_or_endpoint_name function to retrieve a Flow object by ID or endpoint name

* refactor: Update get_flow_by_id_or_endpoint_name function to handle None flow_id parameter

* 🐛 (flow.py): replace ValueError with HTTPException to return a 404 status code when flow identifier is not found

* refactor: Update error message for flow identifier not found

The code changes in `test_endpoints.py` update the error message when a flow identifier is not found. Previously, the error message referenced the flow ID directly, but now it uses the more generic term "Flow identifier" to account for cases where the identifier could be an endpoint name. This change improves the clarity and flexibility of the error message.

Note: This commit message has been generated based on the provided code changes and recent commits.

* 🔧 (endpoints.py): remove unnecessary flow_id_or_name parameter from the simple_run_flow function call to improve code readability and maintainability
2024-05-31 11:02:06 -07:00
ogabrielluiz
1f8d0eb1c0 chore: Update package versions in pyproject.toml files
The package versions in the pyproject.toml files for "langflow" and "langflow-base" have been updated. The version of "langflow" was changed from 1.0.0a42 to 1.0.0a43, and the version of "langflow-base" was changed from 0.0.53 to 0.0.54. This update ensures that the latest versions of the packages are being used in the codebase.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-05-31 14:35:07 -03:00
Mendon Kissling
1a569a4cb7
Update README.md (#2036)
For clarity in Python version.
2024-05-31 12:15:51 -04:00
Mendon Kissling
139a3f254f
Update README.md
For clarity in Python version.
2024-05-31 11:55:54 -04:00