0fb33825d9🐛 fix(chat.py): change data to error in yield statement when flow_id is invalid 🐛 fix(chat.py): catch exception when building graph and yield error message When the flow_id is invalid, the yield statement should return an error message instead of data. Additionally, when building the graph, an exception could occur, so we added a try-except block to catch any exceptions and yield an error message instead of data.
Gabriel Luiz Freitas Almeida
2023-06-21 14:04:45 -03:00
59deed4009🔨 refactor(inputFileComponent): remove unused flows and tabIndex variables, use tabId instead The flows and tabIndex variables were not being used in the component, so they were removed. The tabId variable from the TabsContext is now being used instead to upload the file to the correct tab.
Gabriel Luiz Freitas Almeida
2023-06-21 13:42:52 -03:00
f855433652feat(auth-models): Add is_admin field to User model
gustavoschaedler
2023-06-21 15:54:56 +01:00
4b1ab3c640update lock
Gabriel Luiz Freitas Almeida
2023-06-21 10:37:05 -03:00
37ff0cac4fupdate version
anovazzi1
2023-06-20 20:54:56 -03:00
770f61294dfeat(chatInput): add useEffect hook to focus on chat input when lockChat is false and inputRef is available fix(chatInput): remove unnecessary comment in useEffect hook
anovazzi1
2023-06-20 20:49:32 -03:00
a42b6587c5🔧 chore(config.yml): update Swagger API overview and paths The Swagger API overview and paths have been updated to reflect the latest changes in the API. The changes include adding support for a new environment variable, process.env.PORT, to allow the application to run on a configurable port. Additionally, the Swagger API documentation has been updated to reflect the latest API version and routes.
Gabriel Luiz Freitas Almeida
2023-06-21 11:17:48 -03:00
Hotfix: keep focus on chat input (#521)
Gabriel Luiz Freitas Almeida
2023-06-21 13:47:41 +00:00
f92155e68dupdate lock
Gabriel Luiz Freitas Almeida
2023-06-21 10:37:05 -03:00
57f322a0e6🔥 refactor(endpoints.py): rename client_id to flow_id in create_upload_file endpoint ✨ feat(endpoints.py): add UploadFileResponse schema to standardize upload file response The client_id parameter in the create_upload_file endpoint has been renamed to flow_id to improve semantics. The UploadFileResponse schema has been added to standardize the response of the create_upload_file endpoint. The response now includes the flowId and file_path fields.
Gabriel Luiz Freitas Almeida
2023-06-21 10:33:33 -03:00
c26ecd3bda🔥 refactor(base.py): remove unused import statement The import statement for cache_utils in base.py was not being used and has been removed.
Gabriel Luiz Freitas Almeida
2023-06-21 10:29:36 -03:00
5ad0bc6b65🐛 fix(endpoints.py): add try-except block to handle exceptions when saving uploaded files ✨ feat(utils.py): remove unused functions and add docstring to save_uploaded_file function The try-except block in the create_upload_file function handles exceptions that may occur when saving uploaded files. The save_uploaded_file function now has a docstring that explains its purpose and returns the path to the saved file. The unused functions save_cache and load_cache have been removed.
Gabriel Luiz Freitas Almeida
2023-06-21 10:27:56 -03:00
a81a99f1c4🎨 style(inputFileComponent): refactor file upload to use a separate function The file upload functionality has been refactored to use a separate function called uploadFile, which is imported from the API controller. This improves the separation of concerns and makes the code more modular.
Gabriel Luiz Freitas Almeida
2023-06-21 10:21:20 -03:00
5216b519e0🚀 feat(API): add uploadFile function to upload files to the server The uploadFile function allows the user to upload a file to the server. It takes in a file and an ID of the flow to upload the file to. The function creates a FormData object and appends the file to it. It then sends a POST request to the server with the FormData object as the body. The server responds with a Promise containing the response data.
Gabriel Luiz Freitas Almeida
2023-06-21 10:21:05 -03:00
0d7df8a330🚀 feat(api): add UploadFileTypeAPI type definition This commit adds a new type definition for the UploadFileTypeAPI, which includes a single property file_path of type string. This type will be used to define the response of an API endpoint that handles file uploads.
Gabriel Luiz Freitas Almeida
2023-06-21 10:20:48 -03:00
1489da241dupdate lock
Gabriel Luiz Freitas Almeida
2023-06-21 10:09:02 -03:00
0dd16ee794Merge remote-tracking branch 'origin/dev' into multipart_endpoint
Gabriel Luiz Freitas Almeida
2023-06-21 10:07:14 -03:00
3fa6f63fc4update version
anovazzi1
2023-06-20 20:54:56 -03:00
ce66d753e2feat(chatInput): add useEffect hook to focus on chat input when lockChat is false and inputRef is available fix(chatInput): remove unnecessary comment in useEffect hook
anovazzi1
2023-06-20 20:49:32 -03:00
zoom out 10x bigger (#517)
anovazzi1
2023-06-20 16:14:18 -03:00
f0c507a660🐛 fix(loading.py): include "config" in the list of keys to check for *kwargs ✨ feat(constants.py): add default config for CTransformers 🚀 feat(llms.py): add method to format ctransformers field in LLMFrontendNode The fix in loading.py ensures that the *kwargs are converted to a dictionary when the key contains "config". The addition of the default config for CTransformers in constants.py provides a default configuration for the CTransformers model. The new method in llms.py formats the ctransformers field in the LLMFrontendNode.
Gabriel Luiz Freitas Almeida
2023-06-20 16:14:16 -03:00
1c7485bb64🔖 chore(pyproject.toml): bump version to 0.1.5 The version number has been updated from 0.1.4 to 0.1.5 to reflect the changes made in the package. This is a chore commit as it does not add any new features or fix any bugs, but rather updates the version number.
Gabriel Luiz Freitas Almeida
2023-06-20 16:12:47 -03:00
5f5bf06ab2🐛 fix(flows.py): fix conditional statement in update_flow function The conditional statement in the update_flow function was incorrect. The if statement was checking for the opposite of what was intended. The fix changes the if statement to check for the correct condition.
Gabriel Luiz Freitas Almeida
2023-06-20 16:11:33 -03:00
46a30cf92ezoom out 10x bigger
anovazzi1
2023-06-20 15:45:48 -03:00
625f22c024Adding progress bar on build
Cristhian Zanforlin Lousa
2023-06-19 22:45:55 -03:00
Small bugfixes and improvements (#514)
Gustavo Schaedler
2023-06-19 21:10:41 +01:00
7b2849260c🔖 chore(pyproject.toml): bump version to 0.1.4 The version number has been updated from 0.1.3 to 0.1.4. This is a chore commit as it does not introduce any new features or bug fixes, but rather updates the version number to reflect changes made in the package.
Gabriel Luiz Freitas Almeida
2023-06-19 16:27:08 -03:00
b616e0dd42fixed twitter link
Lucas Oliveira
2023-06-19 16:16:58 -03:00
9be559397bremoved api key
Lucas Oliveira
2023-06-19 16:14:25 -03:00
825f2798c3🐛 fix(chat.py): fix node to vertex variable name in stream_build function ✨ feat(chat.py): add progress logging to stream_build function The variable node was renamed to vertex to improve semantics and consistency with the naming conventions. Progress logging was added to the stream_build function to provide feedback to the user on the progress of the build process.
Gabriel Luiz Freitas Almeida
2023-06-19 16:03:25 -03:00
0dcd93ef92added discord and twitter icons, added github stars
Lucas Oliveira
2023-06-19 15:45:26 -03:00
c5d6f487fa✨ feat(Makefile): add build_and_install target to build and install package without running it The path to the langflow.main module was incorrect, causing the backend target to fail. The path has been updated to the correct location.
Gabriel Luiz Freitas Almeida
2023-06-19 14:28:29 -03:00
f180fa6f26🐛 fix(process.py): change input parameter type hint to include Path type The input parameter now accepts a Path object in addition to a string or dictionary. This improves the flexibility of the function and allows for easier file handling.
Gabriel Luiz Freitas Almeida
2023-06-19 14:25:10 -03:00
8a5525f465🚀 feat(constants.tsx): add tweaks parameter to getPythonCode function to allow for customization of flow behavior The getPythonCode function now accepts a tweaks parameter which is used to customize the behavior of the flow. The buildTweaks function is called to generate the tweaks object which is then passed to the load_flow_from_json function. This allows for more flexibility in the usage of the flow.
Gabriel Luiz Freitas Almeida
2023-06-19 14:24:48 -03:00
98f3c708e4🚚 chore(pyproject.toml): move dev dependencies to group.dev The dev dependencies were moved to the group.dev section to improve the organization of the pyproject.toml file.
Gabriel Luiz Freitas Almeida
2023-06-19 12:49:36 -03:00
76a1265eee📝 docs(README.md): update Langflow API usage example and add tweaks parameter The Langflow API usage example has been updated to reflect the new API endpoint URL. Additionally, a new optional tweaks parameter has been added to the run_flow function to allow customization of the flow. The example code has been updated to demonstrate how to use the tweaks parameter.
Gabriel Luiz Freitas Almeida
2023-06-19 12:37:33 -03:00
11185affdd🐛 fix(process.py): refactor fix_memory_inputs function to improve readability and reduce nesting The fix_memory_inputs function was refactored to reduce nesting and improve readability. The function now checks if the langchain_object has a memory attribute and if it is not None before proceeding. The try-except block was also refactored to reduce nesting.
Gabriel Luiz Freitas Almeida
2023-06-19 12:02:15 -03:00
83c28dcabe🔨 refactor(process.py): refactor process_tweaks function to improve readability and maintainability ✨ feat(process.py): add input validation to process_tweaks function The process_tweaks function has been refactored to improve readability and maintainability. The apply_tweaks function has been added to apply the tweaks to the node. The validate_input function has been added to validate the input parameters. The process_tweaks function now raises a ValueError if the input is not in the expected format.
Gabriel Luiz Freitas Almeida
2023-06-19 11:59:34 -03:00
6886828ddd🔀 refactor(process.py): change load_flow_from_json function signature to accept either a JSON file path or a JSON object 🔀 refactor(base.py): import Chain from langchain.chains.base instead of importing it from langflow.graph.vertex.types 🔀 refactor(process.py): remove print statement from process_tweaks function 🔀 refactor(process.py): change load_flow_from_json function signature to accept optional tweaks parameter 🔀 refactor(process.py): change return type of build method in Graph class from List[Vertex] to Chain 🧪 test(loading.py): add test case for loading a flow from a JSON file and applying tweaks 🧪 test(loading.py): remove unused import statement The import statement for Chain in base.py is now more explicit and imports it from langchain.chains.base instead of importing it from langflow.graph.vertex.types. The load_flow_from_json function in process.py now accepts either a JSON file path or a JSON object. The print statement in process_tweaks function has been removed. The load_flow_from_json function in process.py now accepts an optional tweaks parameter. The return type of the build method in the Graph class has been changed from List[Vertex] to Chain. A new test case has been added to loading.py to test loading a flow from a JSON file and applying tweaks. An unused import statement has been removed from loading.py.
Gabriel Luiz Freitas Almeida
2023-06-19 11:36:43 -03:00
7b165ad5d2🐛 fix(Dockerfile): remove unnecessary files after installing dependencies 🚀 chore(pyproject.toml): rename dev-dependencies to dev.dependencies The Dockerfile now removes unnecessary files after installing dependencies to reduce the image size. The pyproject.toml file now uses the correct naming convention for dev dependencies, which is dev.dependencies instead of dev-dependencies.
Gabriel Luiz Freitas Almeida
2023-06-19 11:24:03 -03:00
dockerfile update (#497)
Gabriel Luiz Freitas Almeida
2023-06-19 14:22:35 +00:00
5ea20aa2f0🔨 refactor(constants.tsx): remove unnecessary indentation in getPythonCode function The indentation of the commented line in the getPythonCode function was unnecessary and has been removed to improve code readability.
Gabriel Luiz Freitas Almeida
2023-06-19 10:55:18 -03:00
Fix to launching on Windows (#511)
Gustavo Schaedler
2023-06-19 14:09:06 +01:00
a3f902d479🔖 chore(pyproject.toml): bump version to 0.1.3 The version number has been updated from 0.1.2 to 0.1.3 to reflect the changes made in the package. This is a chore commit as it does not add any new features or fix any bugs, but rather updates the version number.
Gabriel Luiz Freitas Almeida
2023-06-19 09:59:10 -03:00
e01993b7f1🐛 fix(__main__.py): add support for running Langflow on Windows ✨ feat(__main__.py): add support for running Langflow on MacOS and Linux using gunicorn The changes add support for running Langflow on Windows by using uvicorn instead of gunicorn. This is because Windows doesn't support gunicorn. The changes also add support for running Langflow on MacOS and Linux using gunicorn. This is because MacOS requires an env variable to be set to use gunicorn.
Gabriel Luiz Freitas Almeida
2023-06-19 09:55:29 -03:00
f7101f4123feat[components/chatTrigger/index.tsx]: Add Chat Interface shadTooltip
Igor Carvalho
2023-06-18 11:15:46 -03:00
422b922a71Merge remote-tracking branch 'origin/main' into dev
Gabriel Luiz Freitas Almeida
2023-06-18 10:02:50 -03:00
🔼 chore(pyproject.toml): update dependencies to latest versions (#509)
Gabriel Luiz Freitas Almeida
2023-06-18 12:32:01 +00:00
dfb7d2db7f🔼 chore(pyproject.toml): update dependencies to latest versions This commit updates the dependencies in the pyproject.toml file to their latest versions. Specifically, fastapi is updated to version 0.97.0, uvicorn is updated to version 0.22.0, typer is updated to version 0.9.0, rich is updated to version 13.4.2, llama-cpp-python is updated to version ~0.1.0, pyarrow is updated to version 12.0.0, and weaviate-client is updated to version 3.21.0.
Gabriel Luiz Freitas Almeida
2023-06-18 09:30:12 -03:00
HotFix 0.1.1: Prediction was not caching correctly (#504)
Gustavo Schaedler
2023-06-17 20:16:07 +01:00
a87ddf9187Stream Build test case temporarily disabled
gustavoschaedler
2023-06-17 20:10:05 +01:00
b93d5020b3🐛 fix(process.py): caching objects does not depend on is_first_message anymore
Gabriel Luiz Freitas Almeida
2023-06-17 13:34:35 -03:00
1c55a722fefeat: Add buildTrigger ShadTooltip
Igor Carvalho
2023-06-17 12:05:58 -03:00
7d7986c5bd🔥 chore(frontend): remove prepare-commit-msg git hook The prepare-commit-msg git hook was removed from the frontend directory. This hook was not being used and was not necessary for the project's development workflow.
Gabriel Luiz Freitas Almeida
2023-06-16 19:57:33 -03:00
f71e7d1f7a🔥 chore(frontend): remove prepare-commit-msg git hook The prepare-commit-msg git hook was removed from the frontend directory. This hook was not being used and was not necessary for the project's development workflow.
Gabriel Luiz Freitas Almeida
2023-06-16 19:56:09 -03:00
Adding API improvements, HomePage and validation improvements (0.1.0)
Gabriel Luiz Freitas Almeida
2023-06-16 19:46:39 -03:00
3a324ed45aMerge remote-tracking branch 'origin/main' into dev
Gabriel Luiz Freitas Almeida
2023-06-16 19:28:47 -03:00
a5079b39f3🔼 chore(pyproject.toml): increase package version from 0.0.88 to 0.1.0 The langchain dependency was updated to version 0.0.202 to ensure compatibility with the latest version of the package. The package version was increased from 0.0.88 to 0.1.0 to reflect the addition of new features and improvements. 🔼 chore(pyproject.toml): update langchain dependency to version 0.0.202
Gabriel Luiz Freitas Almeida
2023-06-16 19:23:33 -03:00
Adding API improvements, HomePage and validation improvements (#493)
Gabriel Luiz Freitas Almeida
2023-06-16 19:17:13 -03:00
f658d62c51🔥 chore(test_database.py): remove unused test_stress_create_flow function The test_stress_create_flow function is not used in the codebase and is therefore removed to improve code readability and maintainability.
Gabriel Luiz Freitas Almeida
2023-06-16 19:12:45 -03:00
ad552d7add🔨 refactor(test_database.py): remove unnecessary line breaks and whitespace This commit removes unnecessary line breaks and whitespace in the test_database.py file to improve code readability and consistency.
Gabriel Luiz Freitas Almeida
2023-06-16 19:11:13 -03:00
beea12934bMerge branch 'db' of github.com:logspace-ai/langflow into db
gustavoschaedler
2023-06-16 23:07:55 +01:00
fee54b817b🐛 fix(process.py): fix conditional statement to check if "nodes" is in graph_data The conditional statement was checking if "nodes" is in "graph_data['data']" instead of checking if "nodes" is in "graph_data". This fix ensures that the correct data is processed and avoids potential errors.
Gabriel Luiz Freitas Almeida
2023-06-16 19:06:46 -03:00
9ff68eef82🔥 chore(main.py): remove unnecessary newline at the beginning of the file The only change in this commit is the removal of an unnecessary newline at the beginning of the file. This improves the code's readability and consistency.
Gabriel Luiz Freitas Almeida
2023-06-16 19:01:41 -03:00
e58d626068📦 chore(pyproject.toml): add types-cachetools to dev dependencies The types-cachetools package was added to the dev dependencies to provide type annotations for the cachetools package. This improves the codebase's maintainability and readability by providing better type hints.
Gabriel Luiz Freitas Almeida
2023-06-16 18:54:45 -03:00
c7cbb40c36format: run make format
Gabriel Luiz Freitas Almeida
2023-06-16 18:54:18 -03:00
08f04d11d0🔨 refactor(tests): fix formatting and remove unnecessary lines The changes in this commit are purely cosmetic. The code has been reformatted to improve readability and consistency. Unnecessary lines have been removed to make the code more concise.
Gabriel Luiz Freitas Almeida
2023-06-16 18:53:42 -03:00
b06e7a058a🐛 fix(chat.py): add type hint to flow_data_store variable 🔥 chore(main.py): remove unused imports and variables The flow_data_store variable in chat.py was missing a type hint, which was added to improve code readability and maintainability. In main.py, unused imports and variables were removed to improve code cleanliness.
Gabriel Luiz Freitas Almeida
2023-06-16 18:52:55 -03:00
28a902ec15🚀 chore(MainPage): use constant for header text in user projects section The changes in headerComponent remove unused imports and update the header text to use a constant instead of a hardcoded string. The constant is added in constants.tsx. The MainPage component is updated to use the constant for the header text in the user projects section. This improves code readability and maintainability. 🎨 style(headerComponent): remove unused imports and update header text to use constant ✨ feat(constants.tsx): add constant for header text in user projects section
Gabriel Luiz Freitas Almeida
2023-06-16 18:39:06 -03:00
bf621c78b4🐛 fix(__main__.py): fix issue where app was not serving the index.html file when a 404 error occurred ✨ feat(main.py): remove static_path argument from create_app function The fix to the issue where the app was not serving the index.html file when a 404 error occurred was done by adding an exception handler to the app that returns the index.html file when a 404 error occurs. The create_app function was modified to remove the static_path argument as it was not being used in the function.
Gabriel Luiz Freitas Almeida
2023-06-16 18:36:06 -03:00
e1e5fb14c9refactor(typesContext.tsx): reverse the order of keys in the types object to avoid overlap with tool world
anovazzi1
2023-06-16 18:20:06 -03:00