Commit graph

8,701 commits

Author SHA1 Message Date
italojohnny
f1b5abd704 fix bug: flow_id 2024-06-03 18:18:10 -03:00
cristhianzl
adeaf4db91 Merge branch 'SessionManagment' of https://github.com/langflow-ai/langflow into SessionManagment 2024-06-03 18:17:19 -03:00
cristhianzl
d670ec8d64 🐛 (service.py): add missing 'id' column in SQL query to fix data retrieval issue
💡 (service.py): add print statement for debugging SQL query
♻️ (index.tsx): reorder imports for better readability and maintainability

♻️ (flowStore.ts): remove trailing commas to improve code consistency and readability

💡 (index.ts, storeUtils.ts): format type definitions for better readability
2024-06-03 18:17:15 -03:00
anovazzi1
818696a661 refactor: Add getSessions function to fetch available sessions in IOModal 2024-06-03 17:37:14 -03:00
cristhianzl
895df8c050 ♻️ (monitor.py, service.py): remove trailing whitespace to improve code cleanliness 2024-06-03 17:05:50 -03:00
cristhianzl
0e56617e26 ♻️ (monitor.py): refactor update_message to return MessageModelResponse
♻️ (service.py): update SQL query to use index instead of id
♻️ (api.tsx): refactor duplicate request check logic
 (check-duplicate-requests.ts): add helper to check and store duplicate requests
🐛 (messagesStore.ts): fix message update logic to use index instead of id
2024-06-03 17:05:39 -03:00
Lucas Oliveira
6874f380f9 Merge remote-tracking branch 'origin/dev' into fix/minor_bugs 2024-06-03 17:04:42 -03:00
cristhianzl
9d033c9e34 merge 2024-06-03 15:49:51 -03:00
cristhianzl
999ce405c4 ♻️ (playwright.config.ts): increase workers to 10 for faster parallel tests
♻️ (playwright.config.ts): set headless to false for better debugging

♻️ (addNewVariableButton.tsx): add data-testid to save button for testing
🐛 (addNewVariableButton.tsx): fix optional chaining in error handling

♻️ (sideBarFolderButtons/index.tsx): add data-testid to input for testing
♻️ (sideBarFolderButtons/index.tsx): remove unnecessary commas

🐛 (api.tsx): fix duplicate request check to include method "get"
♻️ (api.tsx): remove unnecessary commas in function calls

♻️ (index.tsx): reorder import statements for better readability
💡 (index.tsx): remove trailing commas to adhere to coding standards
 (chatInputOutput.spec.ts): update file path for ChatTest.json for consistency
🐛 (darkStore.ts): add null check for GitHub stars to prevent potential errors

 (tests): update chatInputOutputUser.spec.ts to add new test for output inspection
🔧 (tests): fix path for collection.json in dragAndDrop.spec.ts

 (filterEdge.spec.ts): fix locator strings and remove redundant code
 (floatComponent.spec.ts): correct checkbox state expectations and remove redundant tests

 (folders.spec.ts): update folder creation and editing flow for consistency
 (globalVariables.spec.ts): remove redundant 'Save Variable' click action
 (inputComponent.spec.ts): fix incorrect locator for server port and improve readability

 (intComponent.spec.ts): add additional test steps for more options modal
 (saveComponents.spec.ts): update file path for flow_group_test.json
2024-06-03 14:52:03 -03:00
anovazzi1
41c2d7feb5 start history in playgroundModal 2024-06-03 14:48:05 -03: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
cristhianzl
4efde816b5 (routes.tsx): implement lazy loading for route components to improve performance
 (routes.tsx): add Suspense fallback with LoadingComponent for better UX during lazy loading
2024-06-03 10:48:04 -03:00
cristhianzl
93568b4c0d (tableComponent): add editable prop to TableComponent for column editing
 (API): add updateMessageApi function to update messages via API
 (chatView): add select dropdown for clearing builds and sessions
♻️ (use-messages-table): refactor to use messages store for setting messages
♻️ (use-remove-messages): remove setRows and use messages store for deletion
 (use-updateMessage): add hook for updating messages with API integration
📝 (headerMessages): update header message text in messages page

 (messagesPage): add cell edit request handling for message updates
♻️ (messagesPage): refactor state management and hooks usage
 (types): add new types for chat and message handling
2024-06-03 10:31:46 -03:00
cristhianzl
21a8545ddb ♻️ (monitor.py): change POST to DELETE for delete_messages endpoint
♻️ (schemas.py): remove unused MessageIds schema
♻️ (api.tsx): add missing commas in ApiInterceptor function
🐛 (api.tsx): fix duplicate request check to include method "get"
♻️ (index.ts): change deleteMessagesFn to use DELETE method instead of POST
♻️ (use-remove-messages.tsx): clean up comments and improve error handling
2024-06-03 10:29:58 -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
anovazzi1
f3922dfff6 refactor: Move editable attribute to TableComponent
add update function, need to fix backend
2024-06-02 19:38:33 -03:00
anovazzi1
1a65af7602 move editable attribute to table Component 2024-06-02 18:07:45 -03:00
anovazzi1
bca88b2d1b fix api reference of FlowPool 2024-06-02 17:33:55 -03:00
Rodrigo
aca541e97b Default temperature parameter enhancement 2024-06-01 23:34:08 -03:00
anovazzi1
729150a5a4 refactor(headerMessages): update text content in HeaderMessagesComponent 2024-05-31 22:40:53 -03:00
Lucas Oliveira
82dead782d Fixed border on top of input when image is present 2024-05-31 22:02:11 -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
italojohnny
6726960b28 change return to dict for token cases 2024-05-31 19:28:00 -03:00
italojohnny
d68e5a1143 return artifact values into log to frontend 2024-05-31 19:28:00 -03:00
italojohnny
b67ef6ea72 retrieve and store artifact values 2024-05-31 19:28:00 -03:00
italojohnny
a5f9ec0339 add function to determine artifact type 2024-05-31 19:28:00 -03:00
italojohnny
be03ef094d fix stream 2024-05-31 19:28:00 -03:00
anovazzi1
1d06969364 Merge remote-tracking branch 'origin/ic/flow_eraser_dropdown' into SessionManagment 2024-05-31 17:47:08 -03:00
anovazzi1
f1555c41d5 refactor: remove console.log statement and update condition for displaying "NO OUTPUT" message 2024-05-31 17:44:29 -03:00
anovazzi1
300be557c2 feat(frontend): add ErrorOutput component to display error messages in output modal
feat(frontend): update SwitchOutputView to render ErrorOutput component for 'ValueError'
fix(frontend): update BaseModal header text in OutputModal component
fix(frontend): update displayOutputPreview logic in ParameterComponent to check for specific log type
2024-05-31 17:42:47 -03:00
cristhianzl
34677b6d3f 🐛 (index.tsx): handle 'valueError' resultType in SwitchOutputView component to display 'NO OUTPUT' for error cases 2024-05-31 16:33:09 -03:00
cristhianzl
87323adaa8 ♻️ (index.tsx): remove console.log statement and update condition for displaying "NO OUTPUT" message 2024-05-31 16:31:03 -03: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