Commit graph

6,039 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
7cded3898e Merge branch 'form_io' of https://github.com/logspace-ai/langflow into form_io 2023-07-10 16:41:29 -03:00
Cristhian Zanforlin Lousa
5d42acf28d 🐛 fix(utils.ts): add optional chaining to reactFlowInstance.getNode() to handle cases where reactFlowInstance is null or undefined 2023-07-10 16:41:23 -03:00
Gabriel Luiz Freitas Almeida
43e69f1f45 🐛 fix(types.py): fix variable name in format method to correctly reference the 'artifacts' variable 2023-07-10 16:29:39 -03:00
Lucas Oliveira
e020e23124 Fixed tooltip not being at the top of all nodes 2023-07-10 16:20:18 -03:00
Lucas Oliveira
6b3fcd5608 format 2023-07-10 16:00:12 -03:00
Lucas Oliveira
f035be88e4 Fixed bug where we cannot create new flow when we build a flow 2023-07-10 15:59:38 -03:00
Gabriel Luiz Freitas Almeida
eecefdb235 🐛 fix(formModal): handle case when chatKey is undefined to prevent error 2023-07-10 15:47:02 -03:00
gustavoschaedler
6122521783 🐛 fix(custom.py): remove unused imports and unused code block to improve code cleanliness and performance
 feat(custom.py): add NotImplementedError to the build method to indicate that it needs to be implemented in subclasses
🚧 chore(test_custom_component.py): add test cases for various methods in the CustomComponent class to improve test coverage and ensure code correctness
2023-07-10 19:34:36 +01:00
Cristhian Zanforlin Lousa
8b77cf5504 Merge branch 'form_io' of https://github.com/logspace-ai/langflow into form_io 2023-07-10 15:17:21 -03:00
Cristhian Zanforlin Lousa
43063dd00f 🎨 style(chatMessage/index.tsx): add responsive max-width to the markdown container to improve readability on smaller screens 2023-07-10 15:17:13 -03:00
Gabriel Luiz Freitas Almeida
2c2ae5451c 🔒 chore(base.py): add validation for invalid input variable names in validate_prompt function
🐛 fix(base.py): raise ValueError if any of the input variables in template are named as invalid names to prevent potential issues
2023-07-10 15:13:40 -03:00
Gabriel Luiz Freitas Almeida
6ff7ac08ce
🐛 fix(utils.ts): fix typo in utils.ts (#599) 2023-07-10 14:50:42 -03:00
Cristhian Zanforlin Lousa
df31285395 Merge branch 'form_io' of https://github.com/logspace-ai/langflow into form_io 2023-07-10 14:39:18 -03:00
Cristhian Zanforlin Lousa
1f2cddf1d2 🎨 style(chatInput/index.tsx): add 'bg-input' class to the chat input when lockChat is true to improve visual distinction 2023-07-10 14:39:11 -03:00
Ikko Eltociear Ashimine
7cbba9eede
fix(icons): fix typo in index.tsx
HugginFaceIcon -> HuggingFaceIcon
2023-07-11 02:34:35 +09:00
Gabriel Luiz Freitas Almeida
c9fd97f1f6 formatting 2023-07-10 13:58:48 -03:00
Gabriel Luiz Freitas Almeida
02fc2004e1 🐛 fix(textsplitters.py): change default value of Separator field from "." to "\\n" to correctly split text by newline characters 2023-07-10 13:54:46 -03:00
Gabriel Luiz Freitas Almeida
8f9bfd2a7c 🐛 fix(loading.py): fix issue with separators being escaped strings by decoding them using unicode-escape encoding 2023-07-10 13:50:45 -03:00
Gabriel Luiz Freitas Almeida
748b4772ed
Merge branch 'dev' into form_io 2023-07-10 13:46:58 -03:00
Gabriel Luiz Freitas Almeida
511e829494 📝 docs(README.md): fix formatting and headings in the README file for better readability and consistency 2023-07-10 13:33:52 -03:00
Gabriel Luiz Freitas Almeida
718b711d6f 🔺 chore(pyproject.toml): update langchain dependency version to ^0.0.229 for compatibility and potential bug fixes 2023-07-10 13:23:31 -03:00
Gabriel Luiz Freitas Almeida
f56e31163a 🐛 fix(types.py): handle KeyError when formatting prompt with artifacts to prevent application crash
🔀 refactor(types.py): remove "handle_keys" from artifacts before formatting prompt to avoid format errors
2023-07-10 13:22:44 -03:00
Gabriel Luiz Freitas Almeida
df348b019d 🔧 chore(memories.py): hide "entity_store" field in MemoryFrontendNode class to improve code readability and remove unnecessary code 2023-07-10 12:55:11 -03:00
Cristhian Zanforlin Lousa
f751927ab1 🎨 style(dropdownComponent/index.tsx): add custom-scroll class to dropdown options to enable custom scrolling 2023-07-10 12:15:39 -03:00
Cristhian Zanforlin Lousa
efbc23d6bc 🐛 fix(codeAreaComponent): update class names to improve styling and semantics
🐛 fix(promptComponent): remove unnecessary div wrapper
🐛 fix(textAreaComponent): update class names to improve styling and semantics
2023-07-10 12:01:25 -03:00
anovazzi1
c8cdb89da1 using new examples for testing 2023-07-10 11:36:16 -03:00
Cristhian Zanforlin Lousa
ea8d6668de 🐛 fix(EditNodeModal): use the 'disabled' prop value instead of hardcoded 'false' to control the disabled state of input components 2023-07-10 10:32:19 -03:00
Cristhian Zanforlin Lousa
243b59507b 🐛 fix(parameterComponent): use strict equality operator (===) instead of loose equality operator (==) for item.type comparison to improve code quality and avoid potential bugs
🐛 fix(parameterComponent): update style prop value in ShadTooltip component to use class names 'tooltip-fixed-width' and 'custom-scroll' for consistent styling and better readability
🐛 fix(parameterComponent): update disabled prop value in TextAreaComponent to use the disabled variable passed as a prop for consistency and better code organization
🐛 fix(AccordionComponent): use strict equality operator (===) instead of loose equality operator (==) for open.length comparison to improve code quality and avoid potential bugs
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(intComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(intComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(promptComponent): add missing dependencies to useEffect dependency array to avoid potential bugs and improve code quality
🐛 fix(promptComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(textAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(textAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(tabsContext): change getTweak initial state from an object to an empty array to match the expected type and avoid potential bugs
🐛 fix(ApiModal): add missing curly braces around the buildTweaks function call to ensure the correct value is pushed to the tweak.current array

🐛 fix(EditNodeModal): remove unnecessary 'save' variable from useContext destructuring
🐛 fix(chatMessage): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(chatModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(codeAreaModal): add 'setCloseEdit' to useContext destructuring and add 'setModalOpen' function
🐛 fix(chatInput): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(chatMessage): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(genericModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(flow): add missing newline at the end of the file
🐛 fix(tabs): add missing import for TweaksType from flow

🐛 fix(utils.ts): change comparison operator from '==' to '===' for better type safety and strict equality check
2023-07-10 10:29:09 -03:00
Gabriel Luiz Freitas Almeida
650275db8a 🔧 chore(base.py): add __repr__ method to Graph class for better debugging and representation 2023-07-10 08:05:18 -03:00
Gabriel Luiz Freitas Almeida
d8dee14ed5 🔨 refactor(base.py): refactor the _build method in the Vertex class for better readability and maintainability
🐛 fix(base.py): fix a bug where the built object is not updated correctly in the Vertex class
 feat(base.py): add validation to check if the built object is None in the Vertex class
2023-07-09 18:09:53 -03:00
Gabriel Luiz Freitas Almeida
008a1c4079 🐛 fix(types.py): replace eval() with ast.literal_eval() to safely evaluate headers parameter as dictionary-like string
🐛 fix(process.py): rename input parameter to flow for clarity and to avoid shadowing built-in function
2023-07-09 18:02:12 -03:00
Gabriel Luiz Freitas Almeida
d0124dc4cc 🔥 refactor(chatModal/index.tsx): remove unused setNoticeData function from alertContext
🔒 chore(chatModal/index.tsx): remove unused lockChat state variable and setLockChat function
2023-07-09 11:18:21 -03:00
Gabriel Luiz Freitas Almeida
612c7a988c 🔥 refactor(callback.py): remove unused imports to improve code readability and maintainability 2023-07-09 11:14:06 -03:00
Gabriel Luiz Freitas Almeida
352cb8bc85 formatting 2023-07-09 11:12:41 -03:00
Gabriel Luiz Freitas Almeida
5ece7e2fbc 🔥 refactor(loading.py): remove unused imports and reorganize import statements for better readability 2023-07-09 11:10:35 -03:00
Gabriel Luiz Freitas Almeida
d2750dd3dc 🔥 refactor(base.py): remove unused method process_base_classes from FrontendNode class
The `process_base_classes` method in the `FrontendNode` class is no longer used and can be safely removed to improve code readability and maintainability.
2023-07-09 11:10:07 -03:00
Gabriel Luiz Freitas Almeida
2f24fca1f2 🐛 fix(base.py): fix issue where CustomComponentCreator.to_list() method always returns None 2023-07-09 11:09:44 -03:00
Gabriel Luiz Freitas Almeida
dc80513691 🐛 fix(types.py): change variable name from 'name' to 'display_name' in add_new_custom_field function to improve clarity
🔧 chore(types.py): add warning when 'name' key is used in field_config to inform that it can't be changed
2023-07-09 11:09:19 -03:00
Gabriel Luiz Freitas Almeida
19b84247cf 🐛 fix(custom.py): improve error message formatting for invalid entrypoint function name and return type 2023-07-09 11:08:50 -03:00
Gabriel Luiz Freitas Almeida
c0df1f7c3b 🐛 fix(callback.py): fix issue with splitting output into multiple ChatResponse instances
 feat(callback.py): split the output into multiple ChatResponse instances to emulate a stream of tokens
2023-07-09 11:00:25 -03:00
Gabriel Luiz Freitas Almeida
8a3e8f010a 🔧 chore(chatModal): update updateLastMessage function to include thought property in the message object
🔧 chore(chatModal): update updateLastMessage function to include thought property in the message object for stream type messages
2023-07-09 10:59:55 -03:00
Gabriel Luiz Freitas Almeida
c959d7bdd5 📝 docs(constants.py): add missing documentation for INPUT_KEY_INFO and OUTPUT_KEY_INFO variables
🐛 fix(memories.py): set info field for input_key and output_key fields to provide additional information to users
2023-07-09 10:51:18 -03:00
Gabriel Luiz Freitas Almeida
99be9830ad 🐛 fix(manager.py): catch and log RuntimeError when closing websocket connection to prevent unexpected ASGI message error
🔒 chore(manager.py): improve error handling when closing websocket connection to prevent unexpected ASGI message error
2023-07-09 10:31:46 -03:00
Gabriel Luiz Freitas Almeida
021e0526e8 ⬆️ chore(pyproject.toml): update fastapi dependency to version ^0.100.0 to stay up-to-date with the latest features and bug fixes 2023-07-09 10:18:43 -03:00
Gabriel Luiz Freitas Almeida
2d4642fc36 🔧 fix(callback.py): add error handling when sending response to websocket to prevent potential errors
🔧 fix(callback.py): change intermediate_steps assignment to use formatted string for better readability and maintainability
 feat(callback.py): add observation_prefix parameter to on_tool_end method to allow customization of the observation prefix in the response message
 feat(callback.py): add logger to handle potential errors when sending response to websocket
2023-07-08 16:49:30 -03:00
Gabriel Luiz Freitas Almeida
800f4b0a94 🐛 fix(loading.py): handle case when loading file into dict fails and raise ValueError with "Invalid file" message
 feat(loading.py): improve code readability by using walrus operator to assign loaded file dict to params["dict_"] variable
2023-07-08 16:45:59 -03:00
Gabriel Luiz Freitas Almeida
3441bb4e5b 🐛 fix(utils.py): improve error handling and file type detection in load_file_into_dict function 2023-07-08 16:45:33 -03:00
Gabriel Luiz Freitas Almeida
2a61d60aab 🔄 chore(render.yaml): update instanceType to plan for better clarity and consistency 2023-07-08 16:12:52 -03:00
Gabriel Luiz Freitas Almeida
75a5ec1160 🔀 chore(render.yaml): update langflow service branch from 'form_io' to 'main' for consistency with the repository's default branch
🔀 chore(render.yaml): add 'instanceType: free' to langflow service configuration to specify the instance type as free
2023-07-08 16:11:25 -03:00
Gabriel Luiz Freitas Almeida
53e8be2720 📝 docs(render.yaml): add render.yaml configuration file for langflow service
🔧 chore(render.yaml): configure langflow service in render.yaml for deployment

- Add render.yaml configuration file for langflow service
- Configure langflow service as a Docker web service
- Set the name of the service to "langflow"
- Specify the runtime as Docker
- Set the path to the Dockerfile as "./Dockerfile"
- Set the repository URL to "https://github.com/logspace-ai/langflow"
- Set the branch to "form_io"
- Set the health check path to "/health"
- Disable auto deployment for the service
2023-07-08 16:08:17 -03:00