Commit graph

480 commits

Author SHA1 Message Date
ogabrielluiz
c4cdb186b8 chore: Update import statement for CustomComponent in validate.py 2024-06-07 16:35:28 -03:00
ogabrielluiz
4e104b7c12 fix: Correct flow retrieval by endpoint name instead of flow name 2024-06-07 16:32:37 -03:00
ogabrielluiz
982c33b476 chore: Update package versions in pyproject.toml files 2024-06-07 16:32:37 -03:00
ogabrielluiz
64e5eaf99d refactor: Update log_transaction function to include target vertex in transaction data 2024-06-07 16:21:20 -03:00
ogabrielluiz
d0ae3835b4 refactor: Update build_and_cache_graph_from_db function to use truthiness check for session_id 2024-06-07 16:21:07 -03:00
anovazzi1
3b6af6fa6a Merge branch 'extended_Session' of personal:langflow-ai/langflow into extended_Session 2024-06-07 15:58:56 -03:00
ogabrielluiz
0db23d2756 refactor: Update TransactionModel and TransactionModelResponse fields 2024-06-07 15:57:15 -03:00
ogabrielluiz
880cf81fa3 update projects 2024-06-07 15:57:15 -03:00
ogabrielluiz
5a7263a7cb Allow models to receive Record as well 2024-06-07 15:57:15 -03:00
ogabrielluiz
b8a361c546 refactor: Improve handling of artifacts in vertex base class 2024-06-07 15:21:03 -03:00
cristhianzl
1be12a3c32 undefined fix on types 2024-06-07 15:06:11 -03:00
cristhianzl
de69b70688 ♻️ (types.py): reformat ChatOutputResponse instantiation for better readability 2024-06-07 12:16:42 -03:00
cristhianzl
2757ae4069 🐛 (types.py): add missing artifact_type to ChatOutputResponse to ensure correct artifact type is set 2024-06-07 12:16:31 -03:00
cristhianzl
9ce7ee31a9 merge branch chatImg 2024-06-07 12:11:40 -03:00
cristhianzl
d89078271c merge dev 2024-06-07 11:28:03 -03:00
cristhianzl
dc29bb4b3d Merge branch 'cz/mergeAll' of https://github.com/langflow-ai/langflow into cz/mergeAll 2024-06-07 11:24:57 -03:00
cristhianzl
016a7dc688 (folders.py, flow.py): add unique name generation for folders and flows
♻️ (folders.py): refactor folder name generation logic to use helper function

♻️ (flow.py): refactor flow name generation logic to use helper function
2024-06-07 11:24:40 -03:00
ogabrielluiz
a6dfe39882 refactor: add session_id to vertices without it in build_and_cache_graph_from_db 2024-06-07 11:15:53 -03:00
anovazzi1
9ae07ec1e8 Merge remote-tracking branch 'origin/cz/mergeAll' into extended_Session 2024-06-07 10:50:43 -03:00
cristhianzl
f5ece1240a merge fix on dev 2024-06-06 22:15:01 -03:00
cristhianzl
815892adf3 formatting files 2024-06-06 21:44:40 -03:00
cristhianzl
02cca793eb merging all branches/feat 2024-06-06 21:43:59 -03:00
italojohnny
a7c1af8c4f Fix encoding load file 2024-06-06 20:03:10 -03:00
ogabrielluiz
c2b2e9a286 🔧 (build_and_push.Dockerfile): Add support for building and pushing frontend code in a separate node builder stage to improve build process efficiency
🔧 (build_and_push.Dockerfile): Update pip install command to force reinstall dependencies to ensure consistency
🐛 (code_parser.py): Change logger.exception to logger.debug to prevent logging full exception stack trace
🐛 (directory_reader.py): Change logger.error to logger.debug and log error message separately to improve error handling and logging clarity
2024-06-06 19:45:18 -03:00
ogabrielluiz
c3a0e3d598 chore: Upgrade langflow-base package version from 0.0.58 to 0.0.59 2024-06-06 18:57:40 -03:00
ogabrielluiz
0f88ae1eb0 chore: Remove imports from dunder init 2024-06-06 18:53:55 -03:00
cristhianzl
7d943b8755 merge fix 2024-06-06 17:40:03 -03:00
ogabrielluiz
ac2df6b681 ⬆️ (pyproject.toml): update package versions to align with the latest changes and improvements
🔧 (pyproject.toml): add couchbase dependency as optional with specific extras to improve flexibility and control
🔧 (pyproject.toml): add couchbase extra to poetry extras to allow for easier installation and management of the dependency
 (pyproject.toml): add "api_key_required" marker to test markers for better test organization and coverage
2024-06-06 17:24:50 -03:00
Gabriel Luiz Freitas Almeida
d929780183
Update dependencies and fix import paths (#2101)
* chore: Update dependencies and build frontend in Dockerfile

* chore: Update lodash import and fix import paths

* chore: Update Dockerfile to remove unnecessary frontend build step
2024-06-06 13:18:56 -07:00
cristhianzl
3b61df1a8b 🐛 (parse.py): fix method assignment logic to avoid overwriting with default 'post' when data flags are used 2024-06-06 16:29:28 -03:00
cristhianzl
686a07faaa merge fix 2024-06-06 14:23:01 -03:00
ogabrielluiz
11d02d7246 update projects 2024-06-06 14:22:22 -03:00
ogabrielluiz
521c1faa28 Refactor utils.py to handle file paths and files in dict_values_to_string and add get_file_paths and get_files functions 2024-06-06 14:21:05 -03:00
ogabrielluiz
ec4802757a 🔧 (model.py): update get_chat_result method to handle input_value as Record type and load prompt if present before processing 2024-06-06 14:21:05 -03:00
ogabrielluiz
f16d3bcb92 Refactor Record class to handle file inputs in to_lc_message method 2024-06-06 14:21:05 -03:00
cristhianzl
3a6cd8822c merge fix 2024-06-06 13:34:01 -03:00
italojohnny
28719aed16 fix artifact 2024-06-06 13:33:04 -03:00
cristhianzl
de3c206a49 merge dev 2024-06-06 13:16:39 -03:00
cristhianzl
8d544907b0 merge dev 2024-06-06 12:15:16 -03:00
cristhianzl
3afd009f08 merge fix 2024-06-06 12:09:33 -03:00
cristhianzl
9525ac95ae formatting code 2024-06-06 12:01:45 -03:00
cristhianzl
74518021ce changing commits 2024-06-06 11:59:17 -03:00
ogabrielluiz
f87e49e0dc ♻️ (schema.py): refactor serialize_model method in Record class to use self instead of cls and improve method signature for better readability and maintainability 2024-06-06 11:52:03 -03:00
ogabrielluiz
318e028c58 (base.py): Add support for passing 'files' parameter to vertex build method to handle file inputs
♻️ (schema.py): Refactor code to include new method 'to_lc_messages' for converting Record to a list of BaseMessage
📝 (utils.py): Add __bool__ method to CacheMiss class to improve boolean evaluation
2024-06-06 11:48:15 -03:00
cristhianzl
ac0d755a62 Merge branch 'dev' into fix/api_settings 2024-06-06 11:29:58 -03:00
ogabrielluiz
fcdef335ca update projects 2024-06-06 09:39:39 -03:00
ogabrielluiz
8b1234f6ca Merge remote-tracking branch 'origin/dev' into chatImg 2024-06-06 09:34:13 -03:00
ogabrielluiz
bed6cd86dc 📝 (parse.py): Update parse_context function to use the new ParsedArgs namedtuple for better code organization and clarity 2024-06-06 09:05:49 -03:00
Lucas Oliveira
cfb1df93ee Merge remote-tracking branch 'origin/dev' into fix/api_settings 2024-06-06 08:29:28 -03:00
anovazzi1
4236d22098
Refactor SettingsPage component and add Messages page (#2084)
* Feat: Create the first version of the eraser tool

* feat: Add Messages page to SettingsPage

Refactor the SettingsPage component to include a new "Messages" page. This page will be accessible through the "/settings/messages" route and will display messages related to user settings. The necessary changes have been made to the index.tsx file of the SettingsPage component and the routes.tsx file.

* refactor(tableComponent): update column definitions to include checkbox selection logic for first column

feat(API): add support for excluding specific columns in getMessagesTable function

fix(flowLogsModal): pass excludedFields parameter to getMessagesTable function

refactor(GlobalVariablesPage): remove unnecessary checkbox selection properties from column definitions

fix(messagesPage): pass excludedFields parameter to getMessagesTable function

refactor(utils): add support for excluding specific columns in extractColumnsFromRows function

* feat: Add API endpoints for managing messages

This commit adds new API endpoints for managing messages. It includes the ability to delete messages by their IDs, update a specific message, and delete all messages associated with a session. These changes are implemented in the `monitor.py`, `schema.py`, and `service.py` files.

*  (monitor.py): add MessageIds schema for structured message deletion
♻️ (monitor.py): change delete_messages endpoint to POST for better semantics
♻️ (monitor.py): update delete_messages to use MessageIds schema
 (schemas.py): add MessageIds schema for structured message deletion
🐛 (service.py): fix SQL query in delete_messages to use correct column name
 (index.tsx): add toTitleCase utility to format column headers
 (API/index.ts): add deleteMessagesFn to handle message deletion via API
 (headerMessages): add HeaderMessagesComponent for message management UI
 (use-messages-table): add useMessagesTable hook to fetch and manage messages
 (use-remove-messages): add useRemoveMessages hook to handle message deletion

♻️ (messagesPage): refactor messages page to use new messages store
 (messagesStore): create zustand store for managing messages state
 (types): add types for messages and zustand messages store

* 💡 (schemas.py): add newline at end of file to follow PEP 8 guidelines

* refactor(headerMessages): update text content in HeaderMessagesComponent

* move editable attribute to table Component

* refactor: Move editable attribute to TableComponent
add update function, need to fix backend

* ♻️ (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

* start history in playgroundModal

* ♻️ (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

* ♻️ (monitor.py, service.py): remove trailing whitespace to improve code cleanliness

* refactor: Add getSessions function to fetch available sessions in IOModal

* 🐛 (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

* update editable fields

* Feat: Make the table last column non-resizable and add a restore columns button

* Remove unnused imports

* Refactor: Remove “Page size” from table pagination

* Refactor: remove page size directly in css file

* chore: Update description text in SettingsPage

* Refactor: Add ResetColumns component to improve table functionality

* Refactor: Make Reset Column button reset columns order

* Refactor: Remove select from delete session button

* Refactor: Remove commented code for chat history tab in IOModal

* update route

* fix selection bug on Messages Table

* fix libs

---------

Co-authored-by: igorrCarvalho <igorsilvabhz6@gmail.com>
Co-authored-by: ogabrielluiz <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-06-05 20:37:38 -03:00