Commit graph

4,403 commits

Author SHA1 Message Date
italojohnny
09c21fca06 fix logs 2024-06-14 16:54:19 -03:00
ogabrielluiz
ce80e26c50 refactor: Ignore missing inputs in Component class 2024-06-14 16:40:47 -03:00
ogabrielluiz
1dbeec38c0 refactor: Import Data class in utils.py for better code organization 2024-06-14 16:31:47 -03:00
ogabrielluiz
d060d5308a Add webhook test and fix webhook to support endpoint name 2024-06-14 16:30:17 -03:00
ogabrielluiz
fb1595e4b0 refactor: Update field_type in HandleInput to use SerializableFieldTypes enum 2024-06-14 16:29:16 -03:00
ogabrielluiz
969deae5e1 refactor: Update BaseInputMixin to validate input assignment 2024-06-14 16:15:33 -03:00
ogabrielluiz
f17c55727d refactor: Update field_type in HandleInput to use SerializableFieldTypes enum 2024-06-14 16:14:30 -03:00
ogabrielluiz
4e13c7352d refactor: Improve value validation in TextInput 2024-06-14 16:11:23 -03:00
ogabrielluiz
c97d90c4ad refactor: Update BaseInputMixin to validate input assignment 2024-06-14 15:32:55 -03:00
ogabrielluiz
4df46bf9de refactor: Add ListableInputMixin to HandleInput class 2024-06-14 15:06:29 -03:00
ogabrielluiz
6f7efd01f2 refactor: Improve handling of repr_value in CustomComponent 2024-06-14 15:05:19 -03:00
ogabrielluiz
46cd83ab46 refactor: Improve handling of repr_value in CustomComponent 2024-06-14 15:05:14 -03:00
ogabrielluiz
05c2a59928 refactor: Fix empty input value handling in TextComponent and WebhookComponent 2024-06-14 15:05:06 -03:00
ogabrielluiz
5471ab3671 feat: Add PyYAML wheel for manylinux_2_17_aarch64 platform 2024-06-14 14:23:38 -03:00
ogabrielluiz
6784332bb3 Merge remote-tracking branch 'origin/dev' into two_edges 2024-06-14 14:13:42 -03:00
ogabrielluiz
6f40941925 Merge remote-tracking branch 'origin/two_edges_dev' into two_edges 2024-06-14 14:09:12 -03:00
Ítalo Johnny
5353d2375a
Sentry integration (#2172)
* add sentry sdk to dependencies

* add sentry attributes to settings

* initialize sentry for error tracking

* add sentry sdk to base dependencies
2024-06-14 10:01:24 -07:00
ogabrielluiz
0172a84d63 refactor: Rename TextInput to TextInputComponent for consistency 2024-06-14 13:51:04 -03:00
Gabriel Luiz Freitas Almeida
9daf66993f
Refactor CustomComponent repr_value handling (#2173)
* Refactor CustomComponent to handle repr_value more efficiently
2024-06-14 09:48:35 -07:00
ogabrielluiz
2276d050fe 🔧 (component.py): Add input validation to Component
📝 (component.py): Update imports and type annotations for better readability and maintainability
🔧 (component.py): Refactor map_inputs method to accept InputTypes and validate inputs in Component class
♻️ (component.py): Refactor _validate_inputs method to check if input is a class method
🔧 (util.py): Add is_class_method function to check if a function is a class method
2024-06-14 13:36:17 -03:00
ogabrielluiz
6ff8b01e9c (inputs/__init__.py): Add TextInput class to support text input type in langflow inputs
📝 (inputs/inputs.py): Add TextInput class with validation logic for different input types like Data, Message, and Text
📝 (schema/message.py): Add text_key attribute to Message class to specify the key for text data in the message object
2024-06-14 13:36:17 -03:00
italojohnny
2d692a6701 Merge branch 'dev' into two_edges_dev 2024-06-14 09:31:14 -03:00
italojohnny
2b244b69e3 fix .json files after merge conflict 2024-06-14 09:30:38 -03:00
italojohnny
902e616286 Merge branch 'two_edges' into two_edges_dev 2024-06-14 09:29:50 -03:00
italojohnny
81be804eee fix .json files after merge conflict 2024-06-14 09:28:05 -03:00
ogabrielluiz
df634de53f chore: Improve error handling and logging in get_current_user_by_jwt function 2024-06-14 08:55:33 -03:00
ogabrielluiz
a7e83baa35 chore: Bump langchain and langchain-core versions to 0.2.4 and 0.2.6 respectively 2024-06-14 08:53:15 -03:00
ogabrielluiz
38c721f387 chore: Bump version of langflow and langflow-base packages 2024-06-14 08:39:42 -03:00
Gabriel Luiz Freitas Almeida
5300b9cc08
Improve error handling and logging in get_current_user_by_jwt function (#2165)
chore: Improve error handling and logging in get_current_user_by_jwt function
2024-06-14 04:24:52 -07:00
Rodrigo
750624f097 refactor: Update max_tokens default value in AnthropicLLM classes 2024-06-14 01:12:07 -03:00
Rodrigo
505ca31467 refactor: Update TextOperatorComponent to handle default outputs 2024-06-14 01:09:31 -03:00
ogabrielluiz
d921865e45 chore: Update dependencies to latest versions 2024-06-13 18:33:48 -03:00
ogabrielluiz
7d7e641260 refactor: Improve handling of template_dicts inputs in Vertex class 2024-06-13 17:44:41 -03:00
Gabriel Luiz Freitas Almeida
5de41ecb3a
🐛 (service.py): Fix handling of postgres dialect in database URL to prevent NoSuchModuleError and provide a warning message for users to update the database URL. (#2161) 2024-06-13 13:36:48 -07:00
Rodrigo
32170a79ae refactor: Update TextOperatorComponent to handle default outputs
Update the TextOperatorComponent to handle default outputs when the true_output or false_output is not passed. If not provided, the default output will be the input text. This change improves the flexibility and usability of the component.
2024-06-13 17:07:41 -03:00
Rodrigo
c89f87baea refactor: Update langflow components and constants 2024-06-13 16:59:37 -03:00
ogabrielluiz
96511fef4a refactor: Improve handling of template_dicts inputs in Vertex class
Refactor the Vertex class to enhance the handling of template_dicts inputs. Instead of using list comprehensions, explicit loops are now used to append the required and optional inputs. This change improves the readability and maintainability of the code.
2024-06-13 16:51:27 -03:00
ogabrielluiz
ffae471c7b refactor: Add HandleInput to inputs module 2024-06-13 16:50:57 -03:00
ogabrielluiz
88f03f0408 refactor: Update Vertex class to improve handling of template_dicts inputs
Refactor the Vertex class to improve the handling of template_dicts inputs. Instead of using list comprehensions, the code now uses explicit loops to append the required and optional inputs. This change enhances the readability and maintainability of the code.
2024-06-13 16:30:38 -03:00
ogabrielluiz
b3266bab9c refactor: Fix issue with handling None values in ResultData class
Fix the issue where None values were not being handled correctly in the ResultData class. This ensures that the code properly handles cases where the message is None, preventing any potential errors or unexpected behavior.
2024-06-13 16:30:29 -03:00
ogabrielluiz
3862afc907 refactor: Sort fields alphabetically and prioritize fields with DIRECT_TYPES in Template class
Sort the fields alphabetically and prioritize fields with DIRECT_TYPES in the Template class. This improves the organization and readability of the code, ensuring that fields with specific types are listed first.
2024-06-13 16:29:00 -03:00
italojohnny
f0630ec870 Merge branch 'dev' into two_edges_dev 2024-06-13 15:58:33 -03:00
italojohnny
5f14aece1a bugfix 2024-06-13 12:36:18 -03:00
ogabrielluiz
a6c9fe8467 Update memory example params 2024-06-13 12:23:46 -03:00
ogabrielluiz
383ac6e1af Update memory example 2024-06-13 12:19:56 -03:00
ogabrielluiz
045cb38cd3 Update Memory Example 2024-06-13 12:12:24 -03:00
ogabrielluiz
6dbc2c76e4 Update projects 2024-06-13 12:05:45 -03:00
Gabriel Luiz Freitas Almeida
d2ae691356
chore: Update schema.py and service.py to handle file serialization and deserialization (#2159)
Refactor the MessageModel class in schema.py to include methods for validating and serializing the 'files' field. This ensures that the 'files' field can be properly handled when it is a string or a list.

In service.py, update the query in the MonitorService class to include the 'files' field when retrieving messages from the database. This ensures that the 'files' field is included in the query results.
2024-06-13 08:01:38 -07:00
ogabrielluiz
8fef4b2d3a chore: Update langflow-base and langflow package versions to 0.0.66 and 1.0.0a55 respectively 2024-06-13 11:30:20 -03:00
Gabriel Luiz Freitas Almeida
18b95c5092
chore: Update duckdb dependency to version 1.0.0 and improve MonitorService code (#2158) 2024-06-13 07:27:15 -07:00