Commit graph

12,054 commits

Author SHA1 Message Date
ogabrielluiz
68f5b38bd2 refactor: Improve TextOutputView component
This commit refactors the TextOutputView component to handle a specific case where the `value` prop is an object with a `text` property. It updates the component to check if the `value` is an object and if it contains the `text` property. If so, it assigns the value of `value.text` to `value`. This change improves the flexibility and usability of the component.
2024-06-19 01:02:46 -03:00
ogabrielluiz
d4a3e83e80 Update Blog Writer project 2024-06-18 23:33:54 -03:00
ogabrielluiz
ba90a4229c Format memory project 2024-06-18 23:08:04 -03:00
ogabrielluiz
4a546dbab7 refactor: Update loading.py to ignore Pydantic deprecation warnings
The code changes in loading.py add a filter to ignore Pydantic deprecation warnings when building custom components or components. This refactor improves the code's maintainability and ensures compatibility with the latest Pydantic version.
2024-06-18 23:07:43 -03:00
ogabrielluiz
ddd4ebf4fa refactor: Add get_message_from_openai_exception function to handle OpenAI exceptions
The code changes in exceptions.py add a new function `get_message_from_openai_exception` to handle exceptions raised by the OpenAI library. This function retrieves the error message from the exception and returns it. This refactor improves the error handling and enhances the code's robustness.
2024-06-18 23:07:12 -03:00
ogabrielluiz
86bdb23865 refactor: Add load_from_db attribute to SecretStrInput class
The code changes in inputs.py add a new attribute `load_from_db` to the `SecretStrInput` class. This attribute controls whether the input should be loaded from the database or not. By default, it is set to `True`. This refactor improves the flexibility and configurability of the code.
2024-06-18 23:07:00 -03:00
ogabrielluiz
3ea9d9c40a Update Basic Prompting project 2024-06-18 23:06:49 -03:00
ogabrielluiz
56f15e87b6 update Memory Conversation project 2024-06-18 23:06:39 -03:00
ogabrielluiz
74af14b373 refactor: Update docs_path in test_data_components.py to fix directory path
The code changes in test_data_components.py update the `docs_path` variable to fix the directory path for loading components. The previous path was incorrect, and this update ensures that the correct path is used. This refactor improves the accuracy and reliability of the code.
2024-06-18 22:42:14 -03:00
ogabrielluiz
412a793a4c refactor: Update DocumentsToDataComponent class name in test_helper_components.py
The code changes in test_helper_components.py update the class name from DocumentToDataComponent to DocumentsToDataComponent. This refactor improves the clarity and consistency of the code.
2024-06-18 22:42:06 -03:00
ogabrielluiz
ca95e66b88 (test_custom_component.py): update test_custom_component_get_function_entrypoint_args to reflect correct number of arguments in build method
📝 (test_custom_component.py): reorganize import statements for better readability and consistency
♻️ (test_custom_component.py): refactor build method in YourComponent class to simplify and improve code readability
2024-06-18 22:41:57 -03:00
ogabrielluiz
98e3f4bdaa refactor: Update langflow custom components to use specific input classes
The code changes update the langflow custom components to use specific input classes, such as IntInput and TextInput, instead of the generic field types. This refactor improves the clarity and type safety of the code.
2024-06-18 22:41:10 -03:00
ogabrielluiz
df04a329cc Update webhook test case 2024-06-18 22:17:35 -03:00
ogabrielluiz
2134abcaa9 refactor: Fix logger warning in Message class 2024-06-18 22:11:46 -03:00
ogabrielluiz
9ba00de4d5 refactor: Validate name overlap between inputs and outputs in FrontendNode
The code changes in `frontend_node/base.py` add a new method `validate_name_overlap` to the `FrontendNode` class. This method checks if any of the output names overlap with any of the input names and raises a `ValueError` if there is a duplication. This refactor improves the consistency and correctness of the code. The commit message follows the established convention of using a prefix to indicate the type of change.
2024-06-18 22:11:33 -03:00
ogabrielluiz
92bc06be00 refactor: Update WebhookComponent to use langflow.custom.Component and langflow.inputs.TextInput
The code changes in `Webhook.py` update the `WebhookComponent` class to inherit from `langflow.custom.Component` instead of `langflow.custom.CustomComponent`. It also replaces the `langflow.schema.dotdict` import with `langflow.template.Output` and updates the `build_data` method to use the `self.data` attribute instead of the `data` parameter. Additionally, it adds a new input `TextInput` for providing a JSON payload. This refactor improves the consistency and readability of the code. The commit message follows the established convention of using a prefix to indicate the type of change.
2024-06-18 22:11:21 -03:00
ogabrielluiz
599ef9cc73 refactor: Add MultilineMixin to StrInput for multiline input support and adapt validation 2024-06-18 22:11:06 -03:00
ogabrielluiz
01027cb7a3 🐛 (loading.py): Fix bug where custom component outputs and results were not properly assigned
🐛 (base.py): Fix issue where outputs were not initialized causing potential errors
2024-06-18 21:25:04 -03:00
ogabrielluiz
ba835dc16f refactor: Improve endpoint name uniqueness handling in create_flow function 2024-06-18 21:24:22 -03:00
ogabrielluiz
669237cbd9 refactor: Set user agent for API calls in base settings
The code changes in `base.py` add a `user_agent` attribute to the `Settings` class and a corresponding class method `set_user_agent` to set the user agent for API calls. If the `user_agent` is not provided, it defaults to "langflow". The method also updates the `USER_AGENT` environment variable and logs the new value. This refactor improves the flexibility and maintainability of the code. The commit message follows the established convention of using a prefix to indicate the type of change.
2024-06-18 21:03:43 -03:00
ogabrielluiz
22e3c86df7 chore: Update chat.py to set cache before closing stream
The code changes in `chat.py` update the `build_vertex_stream` function to set the cache using `chat_service.set_cache` before closing the stream. This ensures that the cache is updated with the latest data before the stream is closed. The commit message follows the established convention of using a prefix to indicate the type of change.
2024-06-18 20:48:08 -03:00
ogabrielluiz
decb741e13 🐛 (types.py): Fix get_edge_with_target method to return a Generator instead of a single ContractEdge instance
🐛 (types.py): Fix _get_result method to handle multiple edges with the same target_id
📝 (types.py): Add comments to clarify the purpose of setting the result in the vertex of origin
2024-06-18 20:47:58 -03:00
anovazzi1
63c38437d1 update background on prompt 2024-06-18 20:30:34 -03:00
anovazzi1
6488d27421 fix frozen ui 2024-06-18 20:02:26 -03:00
anovazzi1
0f8b1c729c Adjust initial width 2024-06-18 19:50:55 -03:00
igorrCarvalho
653e52b2df Refactor: Change color of output textbox to Muted 2024-06-18 19:35:46 -03:00
igorrCarvalho
8bbb457096 Refactor: remove log out if the user is using auto login 2024-06-18 19:29:02 -03:00
ogabrielluiz
6266d2201c refactor: Update typing imports in inputs.py
The code changes in `inputs.py` update the typing imports to include `AsyncIterator` and `Iterator` in the `typing` module. This ensures that the correct types are used for certain variables in the code. The commit message follows the established convention of using a prefix to indicate the type of change.
2024-06-18 19:20:45 -03:00
ogabrielluiz
c51e311aa5 feat: Initialize component inputs with default values
The code changes in `component.py` initialize component inputs with default values if they are not provided. This ensures that the inputs are always set, even if they are not explicitly passed. Additionally, the commit message follows the established convention of using a prefix to indicate the type of change.
2024-06-18 19:17:16 -03:00
ogabrielluiz
dde81e1954 refactor: Update Graph class to include cached results in vertex objects 2024-06-18 19:15:10 -03:00
anovazzi1
ab71831ca9 update no output message 2024-06-18 19:12:34 -03:00
ogabrielluiz
d17f957411 refactor: Remove unnecessary dependencies in simplified_run_flow endpoint 2024-06-18 19:03:55 -03:00
ogabrielluiz
d07ee5964f refactor: Update data folder path in conftest.py 2024-06-18 19:03:48 -03:00
ogabrielluiz
c3a45b856b move data folder back 2024-06-18 18:47:04 -03:00
ogabrielluiz
b286d06359 📝 (message.py): add logging using loguru to warn about missing required keys in Message class and default to HumanMessage if keys are missing 2024-06-18 18:42:42 -03:00
ogabrielluiz
235ebd1a07 Update projects 2024-06-18 18:38:26 -03:00
ogabrielluiz
7145c93d6c ♻️ (Prompt.py): refactor code to simplify prompt text assignment in PromptComponent class 2024-06-18 18:37:46 -03:00
ogabrielluiz
7fbd9f0cc6 refactor: Add file input to ChatInput component 2024-06-18 18:37:33 -03:00
ogabrielluiz
418b32a616 Remove Prompt 2024-06-18 18:37:20 -03:00
ogabrielluiz
15aa6031b8 refactor: Update Vertex class to handle field initialization for list types 2024-06-18 18:36:32 -03:00
ogabrielluiz
80c3d5a1da 🐛 (data.py): fix issue where setting a model field value was not updating the data dictionary in the Data class 2024-06-18 18:36:15 -03:00
ogabrielluiz
dbb816abf9 update projects 2024-06-18 17:53:55 -03:00
ogabrielluiz
639a2cea28 refactor: Remove unnecessary code in PromptComponent 2024-06-18 17:50:16 -03:00
italojohnny
a9bf4ffa5f add files to chatinput component 2024-06-18 17:08:52 -03:00
Rodrigo
d5f73dab70 refactor: Update PromptComponent to correctly set the status message and improve code structure 2024-06-18 17:02:42 -03:00
cristhianzl
a07224f30d refactor: Update TableAutoCellRender component to adjust cell height and width for success and error values 2024-06-18 16:35:45 -03:00
ogabrielluiz
4858e3d131 refactor: Update StrInput validation logic to handle list values and improve code structure 2024-06-18 16:02:12 -03:00
ogabrielluiz
1aacc8d116 ♻️ (flowStore.ts): fix updateBuildStatus function to correctly update the flowBuildStatus and improve code structure 2024-06-18 16:02:03 -03:00
cristhianzl
27d3bca082 (twoEdges.spec.ts): update end-to-end test to reflect UI changes and improve test reliability 2024-06-18 15:40:54 -03:00
anovazzi1
b261b6d188 fix markdown bug 2024-06-18 15:08:48 -03:00