Commit graph

10,551 commits

Author SHA1 Message Date
igorrCarvalho
533b72c7eb Fix: user can send more than one file with the same name 2024-06-05 20:49:06 -03:00
igorrCarvalho
948223a1a8 Refactor: increase space between files 2024-06-05 19:57:34 -03:00
igorrCarvalho
82af33bb3a Refactor: Decrease file name truncate index 2024-06-05 19:39:12 -03:00
igorrCarvalho
cb742e34e3 Fix: Sending file without text dont send the file 2024-06-05 19:30:04 -03:00
anovazzi1
bca88b2d1b fix api reference of FlowPool 2024-06-02 17:33:55 -03:00
Lucas Oliveira
82dead782d Fixed border on top of input when image is present 2024-05-31 22:02:11 -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
igorrCarvalho
d091bf9611 Fix: formatFileName function cant truncate when numberToTruncate are bigger than name length 2024-05-30 17:14:39 -03:00
igorrCarvalho
a88193aeee Refactor: Create function to get style classes 2024-05-30 17:09:26 -03:00
igorrCarvalho
7ea7d9a407 Refactor: Create specific folder for handleDownload function 2024-05-30 17:05:20 -03:00
igorrCarvalho
b02b4ee4eb Refactor: Create wrap for download button 2024-05-30 17:00:39 -03:00
igorrCarvalho
7e09131800 Feat: Implement download file on chat function 2024-05-30 16:52:50 -03:00
igorrCarvalho
e56ce2f2b4 Feat: enhance sending files UI 2024-05-30 16:38:35 -03:00
igorrCarvalho
830d5a6ca8 Feat: add diferent loading for file and image 2024-05-30 15:11:28 -03:00
igorrCarvalho
9c19d5cdf1 Refactor: Move util function to proper folder 2024-05-29 18:13:33 -03:00
igorrCarvalho
261d5d2af1 Refactor: Increase file preview width 2024-05-29 18:09:59 -03:00
igorrCarvalho
40eaa0903b Refactor: enhance upload file button UI and enhance File and Image preview UI 2024-05-29 17:48:38 -03:00
cristhianzl
43ba306b34 (chatInput): add useHandleFileChange hook to handle file input changes 2024-05-29 16:01:28 -03:00
cristhianzl
0d17211177 (textAreaWrapper): refactor TextAreaWrapper to improve readability and maintainability
 (uploadFileButton): add UploadFileButton component for file uploads in chat input
2024-05-29 16:01:13 -03:00
cristhianzl
89943b2c3e (chatInput): add file upload functionality with drag-and-drop support 2024-05-29 16:00:57 -03:00
cristhianzl
a1d1ad22ce (chatInput): add helper function to generate class names for file preview
♻️ (chatInput): refactor file preview class name logic to use helper function
2024-05-29 12:39:44 -03:00
cristhianzl
826f9656d9 (chatInput): add focus state handling and dynamic styling for text area
♻️ (filePreviewChat): refactor file preview component for better UX and code clarity
2024-05-29 12:36:18 -03:00
cristhianzl
a98b86a991 🐛 (api.tsx): fix syntax errors in API interceptor to ensure proper error handling and request rejection
💡 (api.tsx): improve error message for duplicate requests to provide more context
2024-05-29 11:11:12 -03:00
cristhianzl
56699384ab (frontend): add TextAreaWrapper component for chat input handling 2024-05-29 10:47:22 -03:00
cristhianzl
7473eea263 (chatInput): add ButtonSendWrapper component for better modularity
 (chatInput): add TextAreaWrapper component for better modularity
♻️ (chatInput): refactor chat input logic to use new wrapper components
♻️ (chatView): clean up imports and improve code readability
2024-05-29 10:47:05 -03:00
cristhianzl
5638e2909c (chatInput): add drag-and-drop file upload functionality
♻️ (chatInput): refactor file upload logic into a reusable hook
2024-05-29 10:46:51 -03:00
cristhianzl
69f5d93bde (chatInput): add custom hooks for auto-resize, focus unlock, and upload
♻️ (chatInput): refactor chat input component to use new custom hooks

💡 (chatInput): replace conditional rendering with Case component for clarity
2024-05-28 20:31:56 -03:00
ogabrielluiz
3194ba7aee Format json 2024-05-24 09:16:09 -03:00
ogabrielluiz
90034c1c61 Refactor validation methods in schema.py for better readability and maintainability 2024-05-24 09:15:40 -03:00
anovazzi1
800059f1aa package-lock.json update 2024-05-23 15:31:52 -03:00
anovazzi1
a6c038a629 Merge remote-tracking branch 'origin/dev' into chatImg 2024-05-23 15:28:58 -03:00
chyok
ece3686767
Remove unused local symbols (#1946)
remove unused local symbols in inspection

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-05-23 07:56:17 -07:00
Gabriel Luiz Freitas Almeida
c7f5e4f843
Fix lint and tests (#1959)
* refactor(chat.py): rename flow_id variable to flow_id_str for better clarity
refactor(chat.py): update flow_id usage to flow_id_str in build_vertex function for consistency
refactor(chat.py): change flow_id to flow_id_str in build_vertex function for consistency
refactor(chat.py): replace flow_id with flow_id_str in build_vertex function for consistency
refactor(chat.py): update flow_id to flow_id_str in build_vertex_stream function for consistency
refactor(chat.py): change flow_id to flow_id_str in build_vertex_stream function for consistency
refactor(chat.py): replace flow_id with flow_id_str in build_vertex_stream function for consistency
refactor(chat.py): update flow_id to flow_id_str in build_vertex_stream function for consistency
refactor(endpoints.py): replace flow_id with flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): update flow_id to flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): change flow_id to flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): replace flow_id with flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): update flow_id to flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): change flow_id to flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): replace flow_id with flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): update flow_id to flow_id_str in simplified_run_flow function for consistency
refactor(endpoints.py): change flow_id to flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): replace flow_id with flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): update flow_id to flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): change flow_id to flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): replace flow_id with flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): update flow_id to flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): change flow_id to flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): replace flow_id with flow_id_str in experimental_run_flow function for consistency
refactor(endpoints.py): update flow_id

fix(files.py): update variable names from flow_id to flow_id_str for consistency
feat(files.py): use flow_id_str instead of flow_id for file operations to ensure correct folder paths
feat(files.py): improve error handling and response messages in file operations
feat(flows.py): optimize query for fetching example flows
feat(folders.py): refactor create_folder function for better readability and maintainability
feat(folders.py): update_folder function to handle excluded_flows and concat_folder_components
feat(folders.py): improve error handling and response messages in folder operations
feat(folders.py): optimize query for fetching folder in download_file function
feat(schemas.py): update FlowListReadWithFolderName schema field names to name and description

feat(OpenAIConversationalAgent.py): add support for using pydantic SecretStr for storing API key securely
feat(ChatOpenAISpecs.py): add support for using pydantic SecretStr for storing API key securely
refactor(RecordsOutput.py): change base class from TextComponent to CustomComponent
refactor(base.py): remove unused import and log_transaction call
refactor(model.py): change components and flows fields to have default_factory=list
refactor(utils.py): update SQLModel import and use Field for components and flows fields
refactor(service.py): change table_map declaration to use type hints for better readability

* feat(tests): add import statement for Folder model in conftest.py to support new functionality
refactor(tests): update query in conftest.py to use nested query for Folder name
refactor(tests): update import statement for UUID in test_endpoints.py
refactor(tests): update UUID usage in test_endpoints.py for consistency and clarity
refactor(tests): update UUID usage in test_endpoints.py for consistency and clarity
refactor(tests): update UUID usage in test_endpoints.py for consistency and clarity
refactor(tests): update UUID usage in test_endpoints.py for consistency and clarity
feat(tests): add import statement for Folder model in test_initial_setup.py to support new functionality
refactor(tests): update query in test_initial_setup.py to use Folder model for better readability and maintainability

* new lock
2024-05-23 07:55:06 -07:00
Cristhian Zanforlin Lousa
9141bbbb86
Refactor: Revamp utils Folder Structure (#1940)
This PR focuses on a comprehensive refactor of the utils folder to
improve code organization, readability, and maintainability.
2024-05-23 11:05:45 -03:00
cristhianzl
1dccd33f48 Merge branch 'dev' into refactor/utils 2024-05-23 11:02:04 -03:00
Cristhian Zanforlin Lousa
0f8312bf84
Refactor: Make My Collection search input use the same component as Store input (#1952) 2024-05-23 11:01:41 -03:00
Eric Hare
0347709d3e
Feature: Updated Chat History for Astra DB (#1895)
* Updated Chat History for Astra DB

* Fix linting issues (i hope)

* Update AstraDBMessageWriter.py

* Fixes from Nicolo's feedback
2024-05-23 06:13:15 -07:00
Prajwal Pai
19680bb137
Add support for Couchbase vector store (#1901)
* add couchbase vector store support

* add docs + minor changes

* Fix lint issues

* remove stray lines

* Add required validation and minor changes

* Address Comments

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-05-23 06:06:21 -07:00
Madhavan
e39b00cdd6
Minor documentation update (#1948)
* Update to use non-deprecated output parser imports

* Update documentation

* Revert "Update to use non-deprecated output parser imports"

This reverts commit 11a969d82b6b2b3659eb7c3c26b5b29a98815834.
2024-05-23 05:34:01 -07:00
Lucas Oliveira
8813f4e5c3
Fixed global variables disappearing after refresh (#1954) 2024-05-23 04:03:33 -07:00
Nicolò Boschi
349443c4cc
fix uncontrolled data used in path expression from /custom_component (#1926) 2024-05-23 03:37:28 -07:00
Nicolò Boschi
dd344ce6c6
backend: validate flow_id on api (#1927) 2024-05-23 03:34:34 -07:00
Nicolò Boschi
73cee13165
backend: remove unsecure and unused endpoint /custom_component/reload (#1928) 2024-05-23 03:32:47 -07:00
Nicolò Boschi
7e6bb9e66f
deps: remove unused dependency msg-extract (GPL3.0) (#1931)
deps: remove unused dependency msg-extract (GPL3-0)

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-05-23 03:31:41 -07:00
Nicolò Boschi
e7a387c53b
deps: remove pysrt dependency (GPL3.0) (#1930)
* deps: remove pysrt dependency (GPL3.0)

* deps: remove pysrt dependency (GPL3-0)

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-05-23 03:30:46 -07:00
Nicolò Boschi
91e6745573
deps: remove unused dependency html2text (GPL3-0) (#1932) 2024-05-23 03:29:32 -07:00