Commit graph

3,100 commits

Author SHA1 Message Date
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
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
Gabriel Luiz Freitas Almeida
f4d9b4b96d 📝 docs(README.md): add instructions for deploying Langflow on Railway and Render platforms
📝 docs(README.md): add information about HuggingFace Spaces and provide a link to the Langflow project on HuggingFace Spaces
2023-07-08 15:53:12 -03:00
Gabriel Luiz Freitas Almeida
bd9bd13f57 🐛 fix(loading.py): handle conversion of max_tokens from string to int if necessary 2023-07-08 15:40:05 -03:00
Gabriel Luiz Freitas Almeida
79261bf620 feat(SanitizedHTMLWrapper): add new component to safely render sanitized HTML content
🐛 fix(chatMessage): fix import path for SanitizedHTMLWrapper component
🐛 fix(formModal): fix import path for SanitizedHTMLWrapper component
🐛 fix(genericModal): fix import path for SanitizedHTMLWrapper component
2023-07-08 15:13:45 -03:00
Gabriel Luiz Freitas Almeida
9a3e0d2891 feat(SanitizedDiv): add a new component to sanitize and render HTML content safely
🔨 refactor(chatMessage): replace the usage of DOMPurify with SanitizedHTMLWrapper component in chatMessage component
🔨 refactor(formModal): replace the usage of DOMPurify with SanitizedHTMLWrapper component in formModal component
🔨 refactor(genericModal): replace the usage of DOMPurify with SanitizedHTMLWrapper component in genericModal component
2023-07-08 15:11:59 -03:00
Gabriel Luiz Freitas Almeida
3896f894ac 🐛 fix(constants.tsx): correct typo in constant name from HIGHLIGH_CSS to HIGHLIGHT_CSS for consistency and clarity 2023-07-08 15:09:49 -03:00
Gabriel Luiz Freitas Almeida
ded0529d59 🔧 chore(chatMessage/index.tsx): import DOMPurify to sanitize HTML content in chat message thought
🐛 fix(chatMessage/index.tsx): use DOMPurify to sanitize HTML content in chat message thought to prevent XSS attacks
2023-07-08 14:58:47 -03:00
Gabriel Luiz Freitas Almeida
167c9cc2d8 🐛 fix(chatModal): concatenate message and thought strings instead of overwriting them to preserve previous content 2023-07-08 14:58:24 -03:00
Gabriel Luiz Freitas Almeida
1fbc897cfa 🐛 fix(GenericNode/index.tsx): fix tooltip content to display "Building..." when isBuilding flag is true 2023-07-08 14:57:53 -03:00
Gabriel Luiz Freitas Almeida
6aac7e8e80 🐛 fix(types.py): add a check for None before checking if the built object has a "format" attribute to prevent potential AttributeError 2023-07-08 14:57:22 -03:00
Gabriel Luiz Freitas Almeida
fbdde257e0 🔧 fix(types.py): fix indentation issue in the repr method of DocumentLoaderVertex and TextSplitterVertex classes
🔧 fix(types.py): calculate average document length in the repr method of DocumentLoaderVertex and TextSplitterVertex classes
2023-07-08 14:52:59 -03:00
Gabriel Luiz Freitas Almeida
7e712b1be8 🐛 fix(loading.py): convert "max_tokens" parameter from string to int if it is a string and can be converted to int
🐛 fix(loading.py): remove "max_tokens" parameter if it is not an integer
2023-07-08 13:59:46 -03:00
Gabriel Luiz Freitas Almeida
55164fdfa3 🐛 fix(error): fix formatting issue in ErrorAlert component 2023-07-08 11:43:27 -03:00
Gabriel Luiz Freitas Almeida
6c17949d21 🔧 fix(base.py): add exception handling when formatting intermediate steps to prevent crashes and log the exception 2023-07-08 11:43:01 -03:00
Gabriel Luiz Freitas Almeida
ba6cf77fe9 feat(base.py): add support for creating SQLDatabaseChain from LLM
📝 docs(base.py): update documentation for ChainCreator class
2023-07-08 11:42:36 -03:00
Gabriel Luiz Freitas Almeida
72b4a2d943 🔥 refactor(chat.py): remove unnecessary code for building the root node in the graph
The code for building the root node in the graph has been removed as it is no longer necessary. Previously, the root node was built separately due to certain nodes requiring parameters that were not connected to it. However, this approach has been reconsidered and the tools are now connected to the ZeroShotPrompt, eliminating the need for separate building of the root node.
2023-07-08 11:40:56 -03:00
Cristhian Zanforlin Lousa
df7b3bb653 🔥 refactor(promptModal): remove unused code and dependencies to improve code cleanliness and reduce bundle size
🔥 refactor(textAreaModal): remove unused code and dependencies to improve code cleanliness and reduce bundle size
2023-07-08 09:13:35 -03:00
Cristhian Zanforlin Lousa
4883064e84 🐛 fix(alerts/error): remove unnecessary line break in ErrorAlert component
 feat(modals/EditNodeModal): add ability to set nodeClass in EditNodeModal component
🐛 fix(modals/genericModal): handle optional chaining for error response data in GenericModal component
🔥 chore(modals/promptModal): remove unused import and checkPrompt function in PromptAreaModal component
2023-07-08 09:12:24 -03:00
Cristhian Zanforlin Lousa
7dcaf709da 🐛 fix(chatMessage/index.tsx): add optional chaining to template.split() to handle cases where template is null or undefined 2023-07-08 08:38:08 -03:00
Lucas Oliveira
b1a58a76b8 Fixed chat thought always showing 2023-07-08 06:44:03 -03:00
Lucas Oliveira
ca7d7cb19c Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io 2023-07-08 06:42:33 -03:00
Rodrigo Nader
bdd39a506a feat(css): Update styles for chat thought and initial prompt
This commit updates the styles for the chat thought and initial prompt components in the frontend. The changes include modifying the border color to use a custom ring color, adjusting the padding and margin, and updating the text size and color. Additionally, the label for the "Initial Prompt" button has been changed to "Display Prompt" for clarity.
2023-07-08 01:33:12 -03:00
Lucas Oliveira
6a04fabced Fixed DOM Nesting error on EditNodeModal 2023-07-08 00:16:22 -03:00
Lucas Oliveira
db990f2472 Assertion on onMove function on reactflow 2023-07-08 00:12:04 -03:00
Lucas Oliveira
33d6fb8081 Fixed bugfix for ace 2023-07-08 00:10:44 -03:00
Lucas Oliveira
eb5a315b07 Fixed bug of DOM nesting showing on console.log 2023-07-08 00:06:30 -03:00
Lucas Oliveira
e73e180cc4
refactor(formModal): Add formModal tailwind constants classes (#628) 2023-07-07 23:58:46 -03:00
Lucas Oliveira
58f6efca61 Merge branch 'form_io' into form_io_constants 2023-07-07 23:57:41 -03:00
Lucas Oliveira
2a34f725fc Added Tooltip Wrapper inside context wrappers to show tooltip on top of every node 2023-07-07 23:48:21 -03:00
anovazzi1
8cca9ce495 refactor(parameterComponent): remove unnecessary empty line in ParameterComponent
refactor(parameterComponent): remove unused useEffect dependency in ParameterComponent
refactor(inputComponent): reformat classNames in InputComponent for better readability
refactor(EditNodeModal): remove unused imports in EditNodeModal
refactor(EditNodeModal): reformat disabled variable assignment in EditNodeModal for better readability
refactor(EditNodeModal): remove unnecessary empty lines in EditNodeModal
refactor(EditNodeModal): reformat handleOnNewValue function call in EditNodeModal for better readability
refactor(chatMessage): remove unnecessary empty line in ChatMessage component
refactor(chatMessage): remove unnecessary inline-block class in ChatMessage component
2023-07-07 21:26:14 -03:00