Commit graph

3,029 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
fcac473a61 🔀 chore(config.yaml): reorganize the order of sections in the config file
The order of sections in the config.yaml file has been adjusted for better readability and organization. The "prompts" section has been moved to the top, followed by the "memories" section, and then the "textsplitters" section. This change improves the structure and consistency of the config file.
2023-07-07 17:22:44 -03:00
anovazzi1
97e1c8ab2e Merge branch 'form_io' of personal:logspace-ai/langflow into form_io 2023-07-07 16:46:31 -03:00
anovazzi1
c4ce44c592 bug fix for ace 2023-07-07 16:45:26 -03:00
Gabriel Luiz Freitas Almeida
57af6a7b66 Revert "Formatting"
This reverts commit 7304b922b9.
2023-07-07 16:44:31 -03:00
Gabriel Luiz Freitas Almeida
6f9520d620 🐛 fix(base.py): add type hint for 'template' attribute in FrontendNodeRequest class
🐛 fix(utils.py): add input validation for 'chat_inputs.message' to prevent errors when no message is provided
🐛 fix(loading.py): add type hint for 'format_kwargs' variable in instantiate_prompt function
🐛 fix(base.py): add type hint for 'inputs' parameter in get_result_and_steps function
The changes in `base.py` and `utils.py` are bug fixes that address potential issues in the code. The type hint for the 'template' attribute in the `FrontendNodeRequest` class is added to improve code clarity and maintainability. The input validation for 'chat_inputs.message' in the `process_graph` function ensures that an error is raised when no message is provided, preventing potential issues down the line. In `loading.py`, the type hint for the 'format_kwargs' variable in the `instantiate_prompt` function improves type safety. Lastly, in `base.py`, the type hint for the 'inputs' parameter in the `get_result_and_steps` function ensures proper type checking.
2023-07-07 15:54:15 -03:00
Gabriel Luiz Freitas Almeida
4e078d7de5 🐛 fix(agents.py): change field type name from 'type_name' to 'field_type' for consistency
The 'type_name' attribute for the 'Tools' field in the 'ZeroShotAgent' class has been changed to 'field_type' to improve consistency with the naming conventions used in the codebase.
2023-07-07 15:53:48 -03:00
Gabriel Luiz Freitas Almeida
da0cf30057 🐛 fix(loading.py): fix condition to remove empty input_key and output_key parameters
The condition to remove empty input_key and output_key parameters has been fixed to correctly handle cases where the parameters are empty strings. This ensures that the parameters are only removed if they are either empty strings or not present in the params dictionary.
2023-07-07 15:38:36 -03:00
Gabriel Luiz Freitas Almeida
7304b922b9 Formatting 2023-07-07 15:34:22 -03:00
Gabriel Luiz Freitas Almeida
4bc1a843d1 🔧 chore(frontend): add prettier-plugin-organize-imports package to improve code formatting
The prettier-plugin-organize-imports package is added to the project to improve code formatting. This plugin helps to organize and sort import statements in a consistent and standardized manner, making the codebase more readable and maintainable.
2023-07-07 15:33:43 -03:00
Cristhian Zanforlin Lousa
2e5ebabb59 🐛 fix(genericModal/index.tsx): adjust styling of the modal content container to fix layout issue 2023-07-07 15:18:37 -03:00
Cristhian Zanforlin Lousa
5e1b490ed2 Merge branch 'form_io' of https://github.com/logspace-ai/langflow into form_io 2023-07-07 15:17:04 -03:00
Cristhian Zanforlin Lousa
1a83cce2f0 🔧 fix(genericModal/index.tsx): fix CSS class name in DialogContent to include gap-2 to add gap between elements
🔧 fix(genericModal/index.tsx): fix CSS class name in flex container to change height to h-[55vh]
🔧 fix(genericModal/index.tsx): fix CSS class name in div container to change height to h-[60px] and adjust width for different screen sizes
🔧 fix(genericModal/index.tsx): fix CSS class name in Badge component to add max-width and truncate long text
🔧 fix(genericModal/index.tsx): fix logic to handle long text in Tooltip component and truncate it if necessary
🔧 fix(genericModal/index.tsx): fix logic to handle button click in DialogFooter component and close modal if input value is empty
2023-07-07 15:16:57 -03:00
Gabriel Luiz Freitas Almeida
85e27d488c 🐛 fix(utils.ts): fix a syntax error in the buildInputs function
The syntax error was caused by a missing quotation mark in the default value of the JSON string. The fix adds the missing quotation mark to ensure the JSON string is valid.
2023-07-07 15:10:20 -03:00
Lucas Oliveira
0c3517149d 🎨 style(chatMessage/index.tsx): add images for robot and male technologist icons to improve visual representation
🔧 chore(chatMessage/index.tsx): update image paths for robot and male technologist icons to match new file locations
2023-07-07 15:07:21 -03:00
Lucas Oliveira
1c6fd14fa5 🐛 fix(chatMessage): adjust styling of chat message container to improve alignment and spacing 2023-07-07 14:58:03 -03:00
Lucas Oliveira
257e73059f 🔧 fix(constants.tsx): import missing lucide-react icons to fix compilation errors
🔧 fix(chatMessage/index.tsx): import missing lucide-react icons to fix compilation errors
🔧 fix(formModal/index.tsx): import missing THOUGHTS_ICON constant to fix compilation errors
2023-07-07 14:57:21 -03:00
Lucas Oliveira
effd0ea52d Merge branch 'dev' into form_io 2023-07-07 14:44:09 -03:00
Lucas Oliveira
16ed5f67aa
Fix characters passing through password icon (#622)
Fix password input style
2023-07-07 14:43:01 -03:00
Lucas Oliveira
54f7cfb821 🔥 refactor(cardComponent/index.tsx): remove unnecessary dialog component and simplify delete button implementation 2023-07-07 14:41:48 -03:00
Cristhian Zanforlin Lousa
dcb8de5335 🐛 fix(index.css): increase right padding of .search-icon class to improve alignment with other elements 2023-07-07 14:24:17 -03:00
Cristhian Zanforlin Lousa
f770347c0a Merge branch 'form_io' of https://github.com/logspace-ai/langflow into form_io 2023-07-07 14:12:10 -03:00
Cristhian Zanforlin Lousa
2262e8e0bd 🐛 fix(index.css): increase right padding of .search-icon class to improve alignment with other elements 2023-07-07 14:12:04 -03:00
Gabriel Luiz Freitas Almeida
e422ed9c78 🐛 fix(constants.tsx): fix indentation issue in getPythonApiCode function
The import statement for the 'typing' module was incorrectly indented, causing a syntax error. The import statement has been fixed to align with the correct indentation.
2023-07-07 13:55:15 -03:00
Gabriel Luiz Freitas Almeida
512b499915 feat(constants.tsx): add support for dynamic inputs in getPythonApiCode and getCurlCode functions
In the getPythonApiCode function, the run_flow function had an unnecessary type annotation for the message parameter. It was removed to improve code readability. Additionally, the variable name in the run_flow function was changed from inputs to payload to better reflect its purpose.

In the getCurlCode function, support for dynamic inputs was added. The inputs variable is now passed as an argument to the flow function, allowing for flexibility in providing different inputs when generating the curl code.
🐛 fix(constants.tsx): remove unnecessary type annotation and fix variable name in run_flow function
2023-07-07 13:51:16 -03:00
Igor Carvalho
d718b153da refactor(chatTrigger): Add new chatTrigger tailwind constants classes 2023-07-07 13:31:35 -03:00
Lucas Oliveira
bb362bd4ff 🐛 fix(chatMessage/index.tsx): fix CSS class name and position of the hidden message icon 2023-07-07 12:54:44 -03:00
Lucas Oliveira
dc415e22f5 🐛 fix(chatMessage/index.tsx): remove unnecessary class name "bg-border" to fix styling issue
 feat(chatMessage/index.tsx): add labels for chatbot and user avatars to improve accessibility and user experience
🐛 fix(chatMessage/index.tsx): adjust styling of chat message content to prevent overflow and improve readability
🐛 fix(chatMessage/index.tsx): adjust button background color to match the background color of the chat message container
2023-07-07 12:46:56 -03:00
Lucas Oliveira
fde865f9ca 🔀 chore(constants.tsx): refactor buildFlowScript function to use template literals for better readability and maintainability 2023-07-07 12:30:20 -03:00
Lucas Oliveira
9ea667aa64 🔥 refactor(utils.ts): remove console.log statement in buildInputs function to improve code cleanliness and remove unnecessary logging 2023-07-07 12:27:53 -03:00
Lucas Oliveira
a6e44c43e6 🔨 refactor(constants.tsx): add support for tabsState parameter in getPythonApiCode, getCurlCode, and getPythonCode functions to build inputs dynamically
🔨 refactor(modals/ApiModal/index.tsx): pass tabsState parameter to getPythonApiCode, getCurlCode, and getPythonCode functions to build inputs dynamically
🔨 refactor(utils.ts): add buildInputs function to build inputs dynamically based on tabsState
2023-07-07 12:27:21 -03:00
Lucas Oliveira
dc8cee8f49 Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io 2023-07-07 12:05:26 -03:00
Lucas Oliveira
be7d9c93fe Formatting changes 2023-07-07 12:05:01 -03:00
Lucas Oliveira
1020539ae6 Changed chat message button to show entire prompt instead of chat input 2023-07-07 12:03:54 -03:00
Cristhian Zanforlin Lousa
f7f08cc97d 🔥 refactor(chatMessage): remove unused code and simplify the ChatMessage component 2023-07-07 11:54:16 -03:00
Cristhian Zanforlin Lousa
17c80a26f2 merge fix 2023-07-07 11:47:05 -03:00
Cristhian Zanforlin Lousa
fbc9eb6d1b merge fix 2023-07-07 11:46:13 -03:00
Lucas Oliveira
3842b90907 🐛 fix(GenericNode): improve readability of tooltip title by formatting the JSX code
🐛 fix(inputFileComponent): fix class order in className to ensure proper styling
🐛 fix(textAreaComponent): fix class order in className to ensure proper styling
🐛 fix(API): remove trailing whitespace at the end of the file
🐛 fix(ApiModal): add missing space before if statement condition
🐛 fix(genericModal): remove unnecessary whitespace and fix class order in className
🐛 fix(utils): add missing comma in INVALID_CHARACTERS array
🐛 fix(tailwind.config.js): add missing comma in custom-scroll CSS rule
2023-07-07 11:36:34 -03:00
Lucas Oliveira
07276523a3 🐛 fix(chatMessage/index.tsx): remove unnecessary div wrapper around matched text in AccordionContent
🔨 refactor(chatMessage/index.tsx): simplify rendering of matched text in AccordionContent by using a span instead of a div
🔨 refactor(chatMessage/index.tsx): remove unnecessary div wrapper around chat.message[chat.chatKey]
2023-07-07 11:35:50 -03:00
Cristhian Zanforlin Lousa
5b2cc6f68a 🎨 style(inputFileComponent): add margin-left to FileSearch2 component to improve spacing
🎨 style(genericModal): add custom-scroll class to div to enable vertical scrolling
🐛 fix(genericModal): set value of inputValue before closing modal in case 1 of switch statement
🐛 fix(genericModal): fix indentation and add missing semicolon in case 2 of switch statement
2023-07-07 06:53:04 -03:00
Rodrigo Nader
7a0ab93357 refactor: Remove unused function and fix code formatting
- Removed the `postCustomComponent` function from the API controller.
- Fixed formatting issues in the `CodeAreaModal` component.
- Removed unnecessary code comments and imports.

This commit simplifies the codebase and improves readability.
2023-07-07 00:10:41 -03:00
Gabriel Luiz Freitas Almeida
961c3d94c8
General UI Fixes (#624) 2023-07-07 00:03:28 -03:00
Cristhian Zanforlin Lousa
4595d51e62 🐛 fix(parameterComponent): set disabled prop to false in TextAreaComponent to enable editing
 feat(GenericNode): import Zap icon from lucide-react to use in validation status tooltip
🐛 fix(textAreaComponent): import classNames from utils to fix missing import error
🐛 fix(constants): update HIGHLIGH_CSS constant to add overflow-y-hidden and max-w-[75vw] classes
🐛 fix(ApiModal): add condition to check if tweak.current exists before calling startTweaks()
 feat(ApiModal): import Variable icon from lucide-react to use in input variables section
🐛 fix(genericModal): import Variable icon from lucide-react to use in input variables section
🐛 fix(utils): add newline character to INVALID_CHARACTERS array
🐛 fix(tailwind.config.js): set height property to "8px" for scrollbar in custom-scroll class
2023-07-06 21:38:42 -03:00
Igor Carvalho
d010a2f515 style: Fix characters passing through password icon 2023-07-06 20:05:20 -03:00
Gabriel Luiz Freitas Almeida
0b727f8b94
Update GCP_DEPLOYMENT.md correct url for opening spot (#618) 2023-07-06 17:38:40 -03:00
Gabriel Luiz Freitas Almeida
6675592737 🔧 refactor(base.py): remove unnecessary condition in get_signature method
The condition `name in settings.<type>` is removed from the `get_signature` method in the `base.py` files of the `agents`, `chains`, `memories`, and `prompts` modules. This condition was unnecessary as it was already checked in the `get_custom_nodes` function. Removing this condition simplifies the code and improves readability.
2023-07-06 17:35:25 -03:00
Gabriel Luiz Freitas Almeida
116c600d95 🐛 fix(base.py): add check for name in settings to prevent accessing non-existent keys
The code now checks if the name is present in the settings before accessing the corresponding keys in the get_custom_nodes function. This prevents accessing non-existent keys and avoids potential errors.
2023-07-06 17:27:55 -03:00
Gabriel Luiz Freitas Almeida
44943d225a 🔥 refactor(customs.py): comment out unused ZeroShotPrompt in CUSTOM_NODES dictionary
The ZeroShotPrompt node in the CUSTOM_NODES dictionary is currently not being used and commented out for clarity and to improve code readability.
2023-07-06 17:21:03 -03:00
Gabriel Luiz Freitas Almeida
8cba8514c4 🐛 fix(agents.py): change type annotation of name parameter in format_field method to Optional[str] for better clarity
The type annotation of the name parameter in the format_field method has been changed to Optional[str] to indicate that it can be either a string or None. This change improves the clarity of the code and makes it easier to understand the expected input for the method.
2023-07-06 17:19:01 -03:00
Lucas Oliveira
7645e24796 Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io 2023-07-06 17:17:26 -03:00
Lucas Oliveira
409c8e4ab2 🔧 fix(chatMessage): import Badge component to use in ChatMessage component
 feat(chatMessage): add support for displaying variables in bold inside curly braces in the chat message

🔧 fix(formModal): add support for template in chat history when adding a new chat message

🔧 fix(genericModal): remove redundant state for modal open/close

🔧 fix(genericModal): remove redundant state for modal open/close

🔧 fix(chat): add support for template in ChatMessageType

🔧 fix(tabs): add support for template in TabsState
2023-07-06 17:15:31 -03:00