Commit graph

6,039 commits

Author SHA1 Message Date
anovazzi1
15a6eb58b1 refactor(reactflowUtils.ts): remove unnecessary code that hides the "code" template for CustomComponent
The code was removing the "code" template for CustomComponent by setting its "show" property to false. However, this code is no longer needed and has been removed to simplify the logic and improve maintainability.
2023-10-04 21:46:34 -03:00
anovazzi1
39ddc8eed4 update proxy field on clean edges 2023-10-04 21:12:58 -03:00
Gabriel Luiz Freitas Almeida
fb26d1fedd 🐛 fix(test_graph.py): update expected values in test_find_last_node and test_ungroup_node to reflect changes in the code 2023-10-04 20:46:32 -03:00
Gabriel Luiz Freitas Almeida
29f0fb1e15 Update grouped_chat example 2023-10-04 20:46:17 -03:00
Gabriel Luiz Freitas Almeida
20555a4e88 🐛 fix(base.py): remove unused process_flow function call in Graph class to improve code readability and performance
🐛 fix(utils.py): change condition from `node["data"]["node"]["flow"]` to `node["data"]["node"].get("flow")` to handle cases where "flow" key is missing in node data

🐛 fix(utils.py): fix incorrect variable name in get_updated_edges function, change `new_edge` to `edge` in the condition
2023-10-04 20:45:29 -03:00
anovazzi1
64dbdc0e9d fix bug on expand and ungroup that does not update connected edges with proxy 2023-10-04 20:10:33 -03:00
Gabriel Luiz Freitas Almeida
7d633d853d 🐛 fix(chat.py): remove unnecessary blank line to improve code readability
🐛 fix(chat.py): remove unused variable 'valid' to improve code readability
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py): fix indentation of 'yield' statement to match the surrounding code
🐛 fix(chat.py
2023-10-04 18:46:20 -03:00
Gabriel Luiz Freitas Almeida
bc421d7557 🐛 fix(test_agents_template.py): set "required" field to True for the "tools" attribute in the template dictionary to enforce its presence 2023-10-04 17:46:45 -03:00
Gabriel Luiz Freitas Almeida
ed61bb5b8b 🔥 refactor(test_setup_superuser.py): remove unused import and function setup_superuser to improve code readability and maintainability 2023-10-04 17:43:56 -03:00
Gabriel Luiz Freitas Almeida
7e2bce6315 ⬆️ chore(pyproject.toml): update package versions and dependencies
- Update the version of the package "langflow" from "0.5.0b6" to "0.5.0" to indicate a stable release.
- Update the version of the package "fastapi" from "^0.100.0" to "^0.103.0" to use the latest version.
- Update the version of the package "uvicorn" from "^0.22.0" to "^0.23.0" to use the latest version.
- Update the version of the package "langchain" from "^0.0.306" to "^0.0.308" to use the latest version.
- Update the version of the package "tiktoken" from "~0.4.0" to "~0.5.0" to use the latest version.
- Update the version of the package "cohere" from "^4.21.0" to "^4.27.0" to use the latest version.
- Update the version of the package "alembic" from "^1.11.2" to "^1.12.0" to use the latest version.
- Update the version of the package "metal-sdk" from "^2.0.2" to "^2.2.0" to use the latest version.

These updates ensure that the project is using the latest versions of the dependencies and takes advantage of any bug fixes or new features introduced in the updated versions.
2023-10-04 17:43:15 -03:00
Gabriel Luiz Freitas Almeida
62fc19b1e6 🔧 fix(test_setup_superuser.py): comment out unused imports and test cases to improve code readability and maintainability 2023-10-04 17:42:52 -03:00
Gabriel Luiz Freitas Almeida
3183c52594 🔧 chore(constants.py): update CLASSES_TO_REMOVE list to include "RunnableSerializable" class
The "CLASSES_TO_REMOVE" list in the constants.py file has been updated to include the "RunnableSerializable" class. This change was made to ensure that the "RunnableSerializable" class is properly removed when processing the list of classes to remove.
2023-10-04 17:42:41 -03:00
Gabriel Luiz Freitas Almeida
537e1a3e05 🔧 chore(utils.py): refactor get_factories_and_deps function to improve code organization and readability
🔧 chore(utils.py): refactor initialize_services function to use the updated get_factories_and_deps function for better maintainability
2023-10-04 17:42:26 -03:00
Gabriel Luiz Freitas Almeida
79334a10de 🔧 chore(callback.py): refactor StreamingLLMCallbackHandler constructor to improve code readability and maintainability
🐛 fix(callback.py): assign websocket attribute from chat_service.active_connections to self.websocket to avoid potential bugs
2023-10-04 17:42:12 -03:00
Gabriel Luiz Freitas Almeida
0b2cfb3bbe 🐛 fix(agents.py): change 'required' attribute of 'Tool' field in InitializeAgentNode class from False to True to enforce its presence 2023-10-04 17:24:41 -03:00
anovazzi1
8ac9a70c68 feat(nodeToolbarComponent): add "Share" option to node toolbar menu for future implementation of sharing functionality
fix(nodeToolbarComponent): remove unnecessary comment and code duplication in the "Download" case of the switch statement
2023-10-04 15:48:38 -03:00
Gabriel Luiz Freitas Almeida
75319a4579 🔧 chore(alembic): import sqlmodel module to satisfy linter and improve code readability 2023-10-04 15:44:29 -03:00
anovazzi1
c9724d0fb4 added custom component template 2023-10-04 15:37:41 -03:00
anovazzi1
71bc3c4a65 formated code 2023-10-04 15:37:41 -03:00
anovazzi1
3c77728709 created test to save flow and fix bug on nested dict 2023-10-04 15:37:41 -03:00
Gabriel Luiz Freitas Almeida
67c0791e30 📝 docs(README.md): update langflow command in usage instructions to 'langflow run' for clarity and consistency
📝 docs(README.md): update langflow command in HuggingFace Spaces section to 'langflow run' for clarity and consistency
📝 docs(README.md): remove empty line in README.md file
2023-10-04 15:00:54 -03:00
Gabriel Luiz Freitas Almeida
358d595b36
Release beta 6 (#1012) 2023-10-04 14:52:42 -03:00
Gabriel Luiz Freitas Almeida
371d231bac 🔖 chore(pyproject.toml): bump version from 0.5.0b5 to 0.5.0b6 to reflect changes in the package 2023-10-04 14:51:47 -03:00
Gabriel Luiz Freitas Almeida
203929914e 🐛 fix(utils.py): remove unnecessary password verification when creating a superuser
💡 refactor(utils.py): simplify logic for creating a superuser by removing redundant password verification
2023-10-04 14:51:18 -03:00
Gabriel Luiz Freitas Almeida
eb1e742029
Change prefix of generated API key from "lf" to "sk"
🔄 refactor(api_key/crud.py): change prefix of generated API key from "lf" to "sk" for better readability and consistency
2023-10-04 13:54:45 -03:00
Gabriel Luiz Freitas Almeida
3403ee3c1c 🔄 refactor(api_key/crud.py): change prefix of generated API key from "lf" to "sk" for better readability and consistency 2023-10-04 13:54:09 -03:00
Gabriel Luiz Freitas Almeida
6c45b6393f
🐛 fix(endpoints.py): replace backend type string with backend name to improve readability and semantics (#1010) 2023-10-04 13:42:42 -03:00
Gabriel Luiz Freitas Almeida
6276e5c233 🔖 chore(pyproject.toml): bump version from 0.5.0b4 to 0.5.0b5 for package release 2023-10-04 13:42:20 -03:00
Gabriel Luiz Freitas Almeida
997639e325 🐛 fix(endpoints.py): replace backend type string with backend name to improve readability and semantics
 feat(anyio.py): add name attribute to AnyIOBackend class to identify the backend by name
 feat(celery.py): add name attribute to CeleryBackend class to identify the backend by name
 feat(manager.py): add backend_name property to TaskService class to get the name of the backend
2023-10-04 13:40:51 -03:00
Gabriel Luiz Freitas Almeida
9277950b07
chore(deps): bump postcss from 8.4.25 to 8.4.31 in /docs (#999) 2023-10-04 13:07:47 -03:00
Gabriel Luiz Freitas Almeida
a308585d01
fix callback use client_id (#993) 2023-10-04 12:53:55 -03:00
Gabriel Luiz Freitas Almeida
3604db72f4
Release Beta 5 (#1009) 2023-10-04 12:51:07 -03:00
Gabriel Luiz Freitas Almeida
16ffde61ec 🔖 chore(pyproject.toml): bump version from 0.5.0b3 to 0.5.0b4 for package release 2023-10-04 12:50:14 -03:00
Gabriel Luiz Freitas Almeida
62711a08cd 🔧 chore(server.py): configure gunicorn to use UvicornWorker as the worker class for improved performance and compatibility 2023-10-04 12:49:30 -03:00
Gabriel Luiz Freitas Almeida
f9d9adf60b 🐛 fix(manager.py): catch and log exceptions when tearing down services to prevent silent failures
🐛 fix(utils.py): catch and log exceptions when tearing down services and superuser to prevent silent failures
2023-10-04 12:49:10 -03:00
Gabriel Luiz Freitas Almeida
e72c04a94a 🐛 fix(__main__.py): set OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable on MacOS to avoid error when running gunicorn
 feat(__main__.py): load environment variables from .env file to override existing environment variables
2023-10-04 12:48:30 -03:00
Gabriel Luiz Freitas Almeida
a185ee4f9b
Release 0.5.0 Beta 3 (#1008) 2023-10-04 10:39:09 -03:00
Gabriel Luiz Freitas Almeida
5f57d82004 🔖 chore(pyproject.toml): bump version from 0.5.0b2 to 0.5.0b3 for package release 2023-10-04 10:36:19 -03:00
Gabriel Luiz Freitas Almeida
f229524cf5 🐛 fix(__main__.py): change default number of worker processes from 2 to 1 to improve performance 2023-10-04 10:34:37 -03:00
Gabriel Luiz Freitas Almeida
1e503ecfe2
bump version (#1007) 2023-10-04 10:28:02 -03:00
Gabriel Luiz Freitas Almeida
f7a404be22 bump version 2023-10-04 10:27:19 -03:00
Gabriel Luiz Freitas Almeida
05e7743c68
Release 0.5.0b0 (#1006) 2023-10-04 10:23:45 -03:00
Gabriel Luiz Freitas Almeida
4ee7c9d01d 🔖 chore(pyproject.toml): update package version from 0.5.0b0 to 0.5.0b1 to reflect changes in the package 2023-10-04 10:21:10 -03:00
Gabriel Luiz Freitas Almeida
0a61f389c8 🔧 chore(manager.py): remove unused initialize_services function
🔧 chore(utils.py): refactor initialize_services function to use a list of factory and dependencies for better readability and maintainability
2023-10-04 10:20:47 -03:00
Gabriel Luiz Freitas Almeida
a6b30e1b8b 🔧 chore(alembic): change columns to be nullable in migration script
🔧 chore(api_key.py): make last_used_at field nullable in ApiKeyBase model

🔧 chore(flow.py): make data field nullable in FlowBase model

🔧 chore(user.py): make profile_image field nullable in User model
2023-10-04 10:20:32 -03:00
Gabriel Luiz Freitas Almeida
d17d127b81
🔖 chore(pyproject.toml): update package version from 0.5.0a7 to 0.5.0b0 to reflect the beta release (#1005) 2023-10-04 09:09:21 -03:00
Gabriel Luiz Freitas Almeida
f9da0009ed 🔖 chore(pyproject.toml): update package version from 0.5.0a7 to 0.5.0b0 to reflect the beta release 2023-10-04 09:08:40 -03:00
Gabriel Luiz Freitas Almeida
95e9561ac9
Fixes table creation (#1004) 2023-10-04 09:07:22 -03:00
Gabriel Luiz Freitas Almeida
78c54d6736 🐛 fix(manager.py): handle table creation errors and log warnings for existing tables
 feat(manager.py): improve table creation process by checking if tables already exist before creating them
2023-10-04 09:03:03 -03:00
Gabriel Luiz Freitas Almeida
3724876620 🐛 fix(utils.py): remove unnecessary check for None value in handle_partial_variables function
🔀 refactor(utils.py): simplify dictionary comprehension in handle_partial_variables function
2023-10-03 22:14:32 -03:00