Commit graph

1,729 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
f18f2f9851 adjust space codacy 2023-06-09 10:10:08 -03:00
Cristhian Zanforlin Lousa
12fa7f4e14 removing the type any from filter 2023-06-08 17:01:54 -03:00
Cristhian Zanforlin Lousa
db5eb1da10 Merge branch 'feat/shadUI' of https://github.com/logspace-ai/langflow into feat/shadUI 2023-06-08 16:58:08 -03:00
Cristhian Zanforlin Lousa
10b3ad711e Adding constants pattern, textfile edit node fix 2023-06-08 16:58:05 -03:00
Gabriel Luiz Freitas Almeida
fae17163c8 🚀 chore(frontend): add esbuild package to improve build performance
The esbuild package has been added to the frontend dependencies to improve the build performance of the application.
2023-06-08 16:38:41 -03:00
Gabriel Luiz Freitas Almeida
8d03db2834 removing package.json from root folder 2023-06-08 16:24:44 -03:00
anovazzi1
1318a813b2 fix bug with development server and some dark mode issues 2023-06-08 16:15:51 -03:00
Cristhian Zanforlin Lousa
736cbb83db Adding key-value to modal subtitles 2023-06-08 13:27:50 -03:00
Cristhian Zanforlin Lousa
73b3220334 Adjust height of dialogs 2023-06-08 13:00:35 -03:00
Cristhian Zanforlin Lousa
741c5a8cd4 Merge branch 'dev' into feat/shadUI 2023-06-08 12:40:09 -03:00
Cristhian Zanforlin Lousa
3b147c879d Formatting 2023-06-08 12:09:45 -03:00
Cristhian Zanforlin Lousa
c9b68f6f7a Changing to ShadUI, Edge Tooltips and Advanced Dialog 2023-06-08 12:05:32 -03:00
Gabriel Luiz Freitas Almeida
23e760b052 🔺 chore(pyproject.toml): update langchain dependency from 0.0.186 to 0.0.194
This commit updates the langchain dependency from version 0.0.186 to version 0.0.194. This is a chore as it updates a dependency to a newer version.
2023-06-08 08:45:20 -03:00
Gabriel Luiz Freitas Almeida
0304becc28 Merge remote-tracking branch 'origin/main' into dev 2023-06-08 08:13:32 -03:00
Gabriel Luiz Freitas Almeida
c4423e0fc0
🐛 fix(utils.py): add type check for streaming and stream attributes before setting them to True (#457)
Fixes #452
2023-06-08 00:47:55 -03:00
Gabriel Luiz Freitas Almeida
1e728c96b6 🔖 chore(pyproject.toml): bump version to 0.0.86
The version number in the pyproject.toml file has been updated from 0.0.85 to 0.0.86. This is a chore commit as it does not introduce any new features or fix any bugs, but rather updates the version number to reflect changes made to the codebase.
2023-06-08 00:42:42 -03:00
Gabriel Luiz Freitas Almeida
8e2bacad9a 🐛 fix(utils.py): add type check for streaming and stream attributes before setting them to True
The code now checks if the streaming and stream attributes are boolean before setting them to True. This ensures that the attributes are not set to True if they are not boolean, which could cause errors in the code.
2023-06-08 00:40:51 -03:00
anovazzi1
5ab186bd88 Merge branch 'feat/node-toolbar' of personal:logspace-ai/langflow into feat/node-toolbar 2023-06-07 19:41:42 -03:00
anovazzi1
e148db41f0 keeping visual updates after node edition 2023-06-07 19:41:25 -03:00
Cristhian Zanforlin Lousa
354822813f adding tailwind animation 2023-06-07 19:40:16 -03:00
Cristhian Zanforlin Lousa
1373e336ff text-center input fields 2023-06-07 19:28:57 -03:00
Cristhian Zanforlin Lousa
b7c847930b adding index to alerts 2023-06-07 19:13:21 -03:00
Cristhian Zanforlin Lousa
dad98a47f6 formatting code 2023-06-07 18:59:47 -03:00
Cristhian Zanforlin Lousa
3cc8c8e6b5 changing code, export, python modal to shadcn ui 2023-06-07 18:59:11 -03:00
Gabriel Luiz Freitas Almeida
b21bd3b8e0 fix: now the version badge text aligns when there's no version 2023-06-07 16:28:48 -03:00
Gabriel Luiz Freitas Almeida
bcba8e0931 Merge remote-tracking branch 'origin/main' into dev 2023-06-07 14:33:09 -03:00
Gabriel Luiz Freitas Almeida
58db0f3c8c
Hotfix: Blank UI bug and other bugfix v0.0.85 (#455)
This release fixes #353 and a bug where a parameter of value `False` would be treated as null.
2023-06-07 14:05:38 -03:00
anovazzi1
78082b5649 update poetry lock 2023-06-07 10:58:11 -03:00
anovazzi1
e3cfdcd136 update version 2023-06-07 10:54:46 -03:00
anovazzi1
b878e1af6a hotfix: fix bug that causes the blank screen 2023-06-07 10:53:45 -03:00
Gabriel Luiz Freitas Almeida
824ad20471
fix: validation now properly checks for null values (#454) 2023-06-07 06:39:20 -03:00
Gabriel Luiz Freitas Almeida
1435d2de83 🔖 chore(pyproject.toml): bump up version to 0.0.84
This commit only updates the version number of the package in the pyproject.toml file. The version number is updated to 0.0.84. This is a chore commit as it does not add any new features or fix any bugs, but it is necessary to keep track of the package version.
2023-06-07 06:29:17 -03:00
Gabriel Luiz Freitas Almeida
7bba3fd087 🐛 fix(chatModal): fix conditional statement to check for undefined and null values
The conditional statement in line 292 was not properly checking for undefined and null values, which could lead to unexpected behavior. The fix ensures that the statement checks for all falsy values, including undefined and null.
2023-06-07 06:25:08 -03:00
Cristhian Zanforlin Lousa
b8aae5f702 starting migration modals to shadcn 2023-06-06 22:55:15 -03:00
Cristhian Zanforlin Lousa
c797b98984 changing the package.json installation 2023-06-06 18:32:39 -03:00
Cristhian Zanforlin Lousa
a2137364a4 adding edit nodes 2023-06-06 18:30:33 -03:00
Cristhian Zanforlin Lousa
de37410e54 adding validator when there are no options 2023-06-06 18:11:38 -03:00
Gabriel Luiz Freitas Almeida
9823b4c9c5
🚀 feat(customs.py): re-add PythonFunction to CUSTOM_NODES (#450) 2023-06-06 17:47:24 -03:00
Gabriel Luiz Freitas Almeida
683b7ab4d0 🚀 feat(config.yaml): add PythonFunction to the list of available tools
The PythonFunction tool has been added to the list of available tools in the config.yaml file. This allows the backend to use Python functions as part of the language processing pipeline.
2023-06-06 17:41:17 -03:00
Gabriel Luiz Freitas Almeida
998d1bf5ed 🚀 chore(Makefile): add install_backend command to backend target
The Makefile has been updated to include the `install_backend` command as a dependency of the `backend` target. This ensures that the backend dependencies are installed before running the backend server.
2023-06-06 12:55:12 -03:00
Gabriel Luiz Freitas Almeida
0eb60c0bf0
API Refactor and structure changes (#449) 2023-06-06 12:52:41 -03:00
Gabriel Luiz Freitas Almeida
73bad871f2 🐛 fix(llms.py): add null check for name variable in azure field formatting
The code was updated to add a null check for the name variable before checking if it contains the string "azure". This prevents a potential runtime error if the name variable is null.
2023-06-06 11:44:57 -03:00
Gabriel Luiz Freitas Almeida
3de23e345f 🚀 feat(customs.py): add PythonFunction to CUSTOM_NODES
🚀 feat(loading.py): add support for PythonFunction node type
🚀 feat(constants.py): add PythonFunction to CUSTOM_TOOLS
🚀 feat(custom.py): add PythonFunction class
🚀 feat(frontend_node/tools.py): add PythonFunctionNode class
🧪 test(test_custom_types.py): add test for PythonFunction class
🧪 test(test_llms_template.py): comment out tests for AzureOpenAI and AzureChatOpenAI
The changes add support for a new node type, PythonFunction, which allows users to define a Python function to be executed. The node type is added to CUSTOM_NODES in customs.py, and support for the node type is added to loading.py. The node type is also added to CUSTOM_TOOLS in constants.py, and the PythonFunction class is added to custom.py. The PythonFunctionNode class is added to frontend_node/tools.py. Tests for the new PythonFunction class are added to test_custom_types.py. Tests for AzureOpenAI and AzureChatOpenAI are commented out in test_llms_template.py.
2023-06-06 11:40:39 -03:00
Gabriel Luiz Freitas Almeida
94b346196b
Initial support for Azure LLM nodes. (#443) 2023-06-06 10:14:31 -03:00
Gabriel Luiz Freitas Almeida
1e854fc469 update endpoint 2023-06-06 10:06:51 -03:00
Gabriel Luiz Freitas Almeida
6b5539232f 🚀 chore(server, tests): update API endpoint URLs to include version number
The API endpoint URLs have been updated to include the version number to improve the API's versioning and maintainability. The changes were made to the server.ts file and the tests that use the API endpoints.

🐛 fix(tests): update API endpoint paths in test files
The API endpoint paths in the test files were outdated and have been updated to reflect the current API version. This ensures that the tests are running against the correct endpoints and that the tests are up-to-date with the current API version.
2023-06-06 10:06:40 -03:00
Gabriel Luiz Freitas Almeida
478bb446c3 🐛 fix(frontend): add missing api/v1 prefix to API routes
🐛 fix(frontend): add missing api/v1 prefix to WebSocket URL
🐛 fix(frontend): add missing api/v1 prefix to Vite proxy target
The API routes, WebSocket URL, and Vite proxy target were missing the "api/v1" prefix, causing the frontend to not be able to communicate with the backend. This commit adds the missing prefix to all three locations to fix the issue.
2023-06-06 10:06:14 -03:00
Gabriel Luiz Freitas Almeida
228f938cd8 🔨 refactor(types.py): move extract_input_variables_from_prompt import to interface.utils module
🔨 refactor(custom.py, loading.py, prompts/custom.py, run.py): update import statements to use extract_input_variables_from_prompt from interface.utils module
🔨 refactor(run.py): remove unused imports and functions
🔨 refactor(utils.py): add type hinting to extract_input_variables_from_prompt function and remove unused imports
The extract_input_variables_from_prompt function has been moved to the interface.utils module to improve code organization. The import statements in the affected modules have been updated to reflect this change. Unused imports and functions have been removed from the run.py module. Type hinting has been added to the extract_input_variables_from_prompt function in the interface.utils module.

🚀 feat(processing): add processing module with get_result_and_steps and fix_memory_inputs functions
The processing module was added to the project with two functions: get_result_and_steps and fix_memory_inputs. The get_result_and_steps function extracts the result and thought from a LangChain object and returns them. The fix_memory_inputs function checks if a LangChain object has a memory attribute and if that memory key exists in the object's input variables. If not, it gets a possible new memory key using the get_memory_key function and updates the memory keys using the update_memory_keys function.
2023-06-06 10:05:46 -03:00
Gabriel Luiz Freitas Almeida
3bfee4d445 🚀 feat(graph): add from_payload class method to Graph class
🚀 feat(utils.py): import extract_input_variables_from_prompt from langflow.interface.utils
The `from_payload` class method is added to the `Graph` class to create a graph from a payload. This method takes a dictionary as input and returns a `Graph` object. The `extract_input_variables_from_prompt` function is imported from `langflow.interface.utils` to extract input variables from a prompt. This function is used in other parts of the codebase to extract input variables from prompts.
2023-06-06 10:05:01 -03:00
Gabriel Luiz Freitas Almeida
7f4eea1e59 🚀 feat(chat): add ChatManager and ChatHistory classes to manage chat history and active connections
 feat(utils.py): add process_graph function to process graph data and generate result and thought
The ChatManager class manages active connections and chat history. The ChatHistory class manages the chat history for a client. The process_graph function processes graph data and generates a result and thought. This function is used in the ChatManager class to generate a response back to the frontend.
2023-06-06 10:02:21 -03:00