Commit graph

12,533 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
34b6153fed
chore: Update persist_directory parameter to handle None value in ChromaSearch and Chroma components (#2157)
* chore: Update persist_directory parameter to handle None value in ChromaSearch and Chroma components

* 🐛 (test_endpoints.py): fix assertion to check for correct key name in output results for chat and any input types
2024-06-13 06:52:32 -07:00
ogabrielluiz
6359fd938b update projects 2024-06-13 10:42:32 -03:00
ogabrielluiz
3f3125de30 refactor: Update OpenAIModelComponent to handle optional model name and temperature
Update the OpenAIModelComponent to handle an optional model name and temperature. This allows for more flexibility in configuring the component. The model name can now be set to None if not provided, and the temperature can be set to 0.1 if not specified. This improves the usability and customization options of the OpenAIModelComponent.
2024-06-13 10:42:27 -03:00
ogabrielluiz
909501e212 refactor: Update langflow components and constants
Update langflow components and constants to improve functionality, error handling, and user experience. This includes fixing rendering issues in dropdownComponent and improving value handling in tableNodeCellRender. The MonitorService now supports read-only mode in the exec_query method. The APIRequestComponent has been enhanced to parse curl commands and update the build configuration accordingly. The URLComponent now includes metadata in the returned data objects. Additionally, the SessionView and MessagesPage components have been updated to sort columns using the messagesSorter utility function, ensuring consistent column ordering. The unused Tabs component has been removed from FlowLogsModal. The CHAT_FIRST_INITIAL_TEXT and CHAT_SECOND_INITIAL_TEXT constants have been updated. Lastly, the error message in the Vertex class of base.py has been improved for building Components. These changes enhance the overall performance, functionality, and clarity of the codebase.
2024-06-13 10:40:39 -03:00
ogabrielluiz
18c4bebd57 refactor: Update MonitorService to support read-only mode in exec_query method 2024-06-13 10:39:51 -03:00
ogabrielluiz
4527bce31e refactor: Fix dropdownComponent rendering issue and improve tableNodeCellRender value handling 2024-06-13 09:58:48 -03:00
ogabrielluiz
d9eb22b3ab refactor: Remove cachetools import and cached decorator from types.py 2024-06-13 09:57:37 -03:00
ogabrielluiz
f198645dec refactor: Update APIRequestComponent and URLComponent
Update the APIRequestComponent and URLComponent to improve functionality and error handling. In APIRequestComponent, add the ability to parse curl commands and update the build configuration accordingly. In URLComponent, include metadata in the returned data objects. These changes enhance the overall performance and user experience of the components.
2024-06-13 09:57:26 -03:00
cristhianzl
80634f9547 🐛 (index.tsx): remove debugger statement to clean up code
♻️ (index.tsx): remove unnecessary trailing commas for consistency
🐛 (foldersStore.tsx): add optional chaining to handle potential undefined responses
♻️ (foldersStore.tsx): remove unnecessary trailing commas for consistency
2024-06-13 09:52:20 -03:00
anovazzi1
f066f97bf9 refactor: Sort columns in SessionView and MessagesPage components
Sort the columns in the SessionView and MessagesPage components using the messagesSorter utility function. This ensures consistent column ordering and improves the user experience when viewing and interacting with the tables.
2024-06-13 09:47:57 -03:00
anovazzi1
629face702 refactor: Remove unused Tabs component from FlowLogsModal 2024-06-13 09:42:26 -03:00
cristhianzl
84df4fd8e4 ♻️ (authContext.tsx): remove unused import and comment out unused code
🐛 (flowSettingsModal): fix potential null reference error in useEffect dependencies
2024-06-13 09:33:03 -03:00
Rodrigo
a662dc2405 Remove RecordsOutput component 2024-06-13 02:03:34 -03:00
Rodrigo
0e69693852 refactor: Update CHAT_FIRST_INITIAL_TEXT and CHAT_SECOND_INITIAL_TEXT constants 2024-06-13 01:59:29 -03:00
ogabrielluiz
e98e3f5387 chore: Update package versions in pyproject.toml files 2024-06-13 01:08:28 -03:00
Jordan Frazier
061809a94e
[feat] add embedding dimensions parameters to openai models (#2146)
Add embedding dimensions parameters to openai models
2024-06-12 21:05:05 -07:00
Ítalo Johnny
5ce1192a1b
Improve makefile [edited] (#2141)
* ignore sqlite tmp files

* update many dependencies to be optional

* improve makefile help messagem

* chore: Update langflow-base dependency to use local path for development

* change postgres to mandatory dependency

* improve makefile readability

* Revert update many dependencies to be optional

This reverts commit 80780565df5bc63632e6971054670cee467542f9.

---------

Co-authored-by: ogabrielluiz <gabriel@langflow.org>
2024-06-12 21:04:13 -07:00
ogabrielluiz
2488c5c738 update DocumentQA 2024-06-13 01:01:58 -03:00
ogabrielluiz
8f8203d45d refactor: Update error message in Vertex class for building Components
Update the error message in the Vertex class of base.py to provide more specific information when encountering an error while building Components. Instead of mentioning "vertex", the message now refers to "Component" to align with the terminology used in the codebase. This change improves clarity and consistency in the error messages.
2024-06-13 01:00:13 -03:00
ogabrielluiz
1ac7555150 refactor: Update FileComponent to handle missing file path
Update the FileComponent in File.py to handle the case where no file path is provided. If the path is empty, raise a ValueError with the message "Please, upload a file to use this component." This change improves the error handling and user experience of the component.
2024-06-13 01:00:07 -03:00
Rodrigo
77dc6b3d4f feat: Add MemoryComponent for retrieving stored chat messages 2024-06-13 00:42:18 -03:00
ogabrielluiz
f8d3eb1824 refactor: Improve ParameterComponent logic and handle output preview
Refactor the ParameterComponent in index.tsx to improve the logic for displaying the output preview. Also, handle the case where there are outputs available for the selected output name. This change enhances the functionality and user experience of the component.
2024-06-13 00:41:07 -03:00
ogabrielluiz
d1946fa351 feat: Add FilterDataComponent for filtering Message objects based on a list of strings 2024-06-13 00:27:06 -03:00
ogabrielluiz
22268409ee refactor: Update Message class in message.py to inherit from Data
Update the Message class in message.py to inherit from the Data class. This change ensures consistency and improves the organization of the codebase.
2024-06-13 00:26:19 -03:00
ogabrielluiz
c956aed61b refactor: Update Message.from_data method parameter name
Update the Message.from_data method in message.py to change the parameter name from "record" to "data". This change improves clarity and consistency in the codebase.
2024-06-13 00:20:20 -03:00
ogabrielluiz
f823d5ccf7 refactor: Update ChatInput and ChatOutput to handle Message input
Update the ChatInput and ChatOutput components in ChatInput.py and ChatOutput.py to handle Message input. If the input value is an instance of the Message class, extract the text attribute and use it as the input value. This change ensures compatibility with the langflow schema and improves the flexibility of the components.
2024-06-13 00:16:44 -03:00
ogabrielluiz
36da9172e7 (TextInput.py): Add MultilineInput class to support multiline input for data_template field
♻️ (TextInput.py): Remove unnecessary code for handling Message type input_value in text_response method
2024-06-13 00:06:51 -03:00
ogabrielluiz
bb847db2b8 refactor: Fix bug in Vertex class when checking if param is a list
Update the Vertex class in base.py to fix a bug in the logic for checking if a parameter is a list. The current implementation only checks if the "list" key exists in the template_dict, but it should also check if the value of the "list" key is truthy. This change ensures that the correct condition is used to determine if a parameter is a list, preventing potential overwriting of params with the same name but different target_id.
2024-06-13 00:04:44 -03:00
Rodrigo
00c83d4b9b refactor: Update TextInput to handle Message input
Update the TextInput component in TextInput.py to handle Message input. If the input value is an instance of the Message class, extract the text attribute and use it as the input value. This change ensures compatibility with the langflow schema and improves the flexibility of the component.
2024-06-13 00:03:36 -03:00
ogabrielluiz
7b09d1cc51 refactor: Add MultilineInput class for handling multiline text inputs 2024-06-13 00:02:37 -03:00
ogabrielluiz
3f363bf1f6 refactor: Handle array log results in switchOutputView component
Update the switchOutputView component to handle array log results. If the log results are an array, an error message is logged and the component returns early. This change ensures proper handling of different types of log results and improves the reliability of the component.
2024-06-12 23:51:38 -03:00
ogabrielluiz
eb85f1d462 refactor: Update StrInput class to include default value
Update the StrInput class in inputs.py to include a default value of an empty string. This change ensures consistency and improves the usability of the class.
2024-06-12 23:50:57 -03:00
ogabrielluiz
72649a034a refactor: Update ChatOutput to use MultilineInput for text input
Update the ChatOutput class in ChatOutput.py to use the MultilineInput class from the langflow library for text input. This change improves the usability and flexibility of the component, allowing for multiline messages to be passed as output.
2024-06-12 23:50:49 -03:00
Rodrigo
b362ab0be6 refactor: Update TextInput display name and info
Update the display name and info of the TextInput component in TextInput.py to improve clarity and consistency. The display name is changed to "Text" and the info is updated to reflect that it expects text input. This change aligns with recent updates to the langflow library and enhances the usability of the component.
2024-06-12 23:34:55 -03:00
ogabrielluiz
8a75315249 refactor: Update CustomComponent to use StrInput and Output classes
Update the CustomComponent class in CustomComponent.py to use the StrInput and Output classes from the langflow library. This change ensures compatibility with the latest langflow updates and improves the clarity and consistency of the code.
2024-06-12 23:27:42 -03:00
Rodrigo
0a9ef2cde0 refactor: Update URLComponent and FileComponent to use langflow custom Component class
Refactor the URLComponent and FileComponent classes to inherit from the langflow custom Component class instead of the deprecated CustomComponent class. This change ensures compatibility with the latest langflow library updates and improves the maintainability of the code.
2024-06-12 23:26:44 -03:00
ogabrielluiz
259bdcbd95 refactor: Add MultilineInput class for handling multiline text inputs 2024-06-12 23:24:45 -03:00
ogabrielluiz
1774fdebe6 📝 (loading.py): Update the logic in build_custom_component function to handle cases where raw is None and improve artifact_type assignment for better accuracy
📝 (chat.py): Remove commented out code related to logs in build_vertex function for better code readability
📝 (schemas.py): Change the type of logs field in ResultDataResponse class to be a dictionary with string keys and Log values for consistency
📝 (schema.py): Refactor build_logs_from_artifacts function to use a dictionary instead of defaultdict for logs variable for simplicity and consistency
2024-06-12 23:24:35 -03:00
ogabrielluiz
ccb9ba3307 refactor: Improve GenericModal coloredContent function
Update the coloredContent function in GenericModal to ensure the input value is converted to a string before applying replacements. This change improves the reliability and consistency of the function.
2024-06-12 23:23:33 -03:00
ogabrielluiz
40ce88b9ea refactor: Update logs field in ResultDataResponse schema
Update the logs field in the ResultDataResponse schema to allow for a list of logs or a single log. This change ensures compatibility with the latest langflow library updates and improves the flexibility of the schema.
2024-06-12 22:44:23 -03:00
ogabrielluiz
6357d245aa refactor: Rename 'hide' to 'hidden' in field classes
Update the field classes in the codebase to use the 'hidden' attribute instead of 'hide' for consistency and clarity. This change aligns with recent updates to the langflow library and improves the readability of the code.
2024-06-12 22:16:41 -03:00
ogabrielluiz
150841d9cf refactor: Remove unused input field in TextInput.py 2024-06-12 22:14:50 -03:00
Rodrigo
47cb35fd9c refactor: Update imports in TextInput.py
Update the imports in TextInput.py to match the latest changes in the langflow library. This ensures compatibility and consistency with the rest of the codebase.
2024-06-12 19:49:24 -03:00
cristhianzl
b72ee8fab6 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 19:43:49 -03:00
cristhianzl
45963ffce0 ♻️ (index.tsx): remove unnecessary trailing commas to improve code readability
🐛 (index.tsx): fix conditional rendering of Download option in toolbar
 (ProfilePictureForm): add setLoading(false) after updating state to ensure loading state is reset
2024-06-12 19:43:41 -03:00
Lucas Oliveira
3bd1a96506 Fixed components with Hide element 2024-06-12 19:42:20 -03:00
Lucas Oliveira
c65f2e1ab1 Added Hide Outputs functionality 2024-06-12 19:41:45 -03:00
Rodrigo
b0e6e42115 ```text
refactor: Add value attribute to ChatInput

Add a new value attribute to the ChatInput class in ChatInput.py. This allows for the pre-filling of the input field with a default value.
2024-06-12 19:41:25 -03:00
italojohnny
34ca9a6a00 Revert "Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev"
This reverts commit 32f67f8dba, reversing
changes made to 716bd2f65b.
2024-06-12 19:22:49 -03:00
anovazzi1
643772c216 Merge branch 'two_edges' of personal:langflow-ai/langflow into two_edges 2024-06-12 18:55:15 -03:00