Commit graph

6,773 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
24219594e5 Refactor user API endpoint 2023-12-04 15:44:31 -03:00
Gabriel Luiz Freitas Almeida
213c44abc5 Fix field_validator mode in FlowBase model 2023-12-04 15:44:31 -03:00
Gabriel Luiz Freitas Almeida
bf76ba660f Fix last_login_at default value 2023-12-04 15:44:30 -03:00
Gabriel Luiz Freitas Almeida
8dcc5e4120 Update base classes in AgentInitializer 2023-12-04 15:44:30 -03:00
Gabriel Luiz Freitas Almeida
5c352157d1 Fix return type assertion in
test_custom_component_get_function_entrypoint_return_type()
2023-12-04 15:44:29 -03:00
Gabriel Luiz Freitas Almeida
f30898d703 Fix import and validate model in flow creation 2023-12-04 15:44:28 -03:00
Gabriel Luiz Freitas Almeida
6e041a62b8 Fix assertion in test_build_graph 2023-12-04 15:44:28 -03:00
Gabriel Luiz Freitas Almeida
7be4ce5b07 Update sqlmodel version to 0.0.14 2023-12-04 15:44:27 -03:00
Gabriel Luiz Freitas Almeida
418e390c0a Update sqlmodel repository URL 2023-12-04 15:44:26 -03:00
Gabriel Luiz Freitas Almeida
6afbd32621 Update AnthropicLLM to use BaseLanguageModel and
SecretStr
2023-12-04 15:44:26 -03:00
Gabriel Luiz Freitas Almeida
1c2d2402ba Update AnthropicLLM model name 2023-12-04 15:44:25 -03:00
Lucas Oliveira
a632fc6bdb Added loading screen on reactflow 2023-12-04 15:32:35 -03:00
Lucas Oliveira
64ca2649fe Fixed group button with transparent background 2023-12-04 15:06:48 -03:00
Lucas Oliveira
395c0fe55a Fixed placeholder message 2023-12-04 15:00:09 -03:00
Lucas Oliveira
f964420a5e Added icons on sidebar 2023-12-04 14:52:31 -03:00
Lucas Oliveira
cc5a913cfd Updated to be on pair with store 2023-12-04 14:43:06 -03:00
anovazzi1
0f33313dae code format 2023-12-04 14:33:16 -03:00
anovazzi1
faea687871 feat(GenericNode): add priorityFields constant to improve sorting logic in GenericNode component
The `GenericNode` component in `index.tsx` has been updated to include an import statement for the `priorityFields` constant from `constants.ts`. This constant is a `Set` containing the field names "code" and "template".

In the `sort` function of the `GenericNode` component, the logic has been modified to check if a field name is present in the `priorityFields` set. If so, it gives higher priority to that field during sorting. This change improves the sorting logic in the component.

The `constants.ts` file has also been updated to include the `priorityFields` constant.
2023-12-04 14:28:07 -03:00
Gabriel Luiz Freitas Almeida
b43a22fbee Refactor langchain imports and update
llm_type_to_cls_dict
2023-12-02 14:00:56 -03:00
Gabriel Luiz Freitas Almeida
498e5b1508 Delete constants.py custom component 2023-12-02 14:00:50 -03:00
Gabriel Luiz Freitas Almeida
83a1255448 Refactor custom component code 2023-12-02 14:00:33 -03:00
Gabriel Luiz Freitas Almeida
7b5066e6b1 feat(store.py): add PATCH endpoint to update a component in the store
🐛 fix(service.py): add update method to StoreService class to handle PATCH requests for updating a component in the store
2023-12-01 22:06:46 -03:00
Gabriel Luiz Freitas Almeida
79df6d883a Refactor store service to include user search by
username
2023-12-01 21:58:09 -03:00
Gabriel Luiz Freitas Almeida
fb99529636 Update jina version 2023-12-01 21:53:59 -03:00
anovazzi1
bc7e612cfb code format 2023-12-01 18:19:11 -03:00
anovazzi1
a368991d39 fix(GenericNode): change icon name from "Ungroup" to "group_components" to match the corresponding icon component
fix(GradientSparkles): add new icon component "GradientUngroup" to render the "Ungroup" icon with gradient stroke
fix(ComponentsComponent): add TODO comment to create a placeholder for when there are no components created yet
fix(styleUtils): import and use the new "GradientUngroup" icon component for the "group_components" icon in nodeIconsLucide
2023-12-01 18:18:18 -03:00
Gabriel Luiz Freitas Almeida
9cf6e93fe5 Add utility functions for API and component
validation
2023-12-01 17:54:27 -03:00
Gabriel Luiz Freitas Almeida
e8830901ab Add validate_is_component function to read_flows 2023-12-01 17:54:15 -03:00
anovazzi1
7d2e67ec77 refactor(flowsContext.tsx): remove file name from components before creating data URI
The `removeFileNameFromComponents` function is added to remove the file name from the components in the `clonedFlow` object before creating the data URI. This ensures that the file name is not included in the exported flow data.

refactor(genericModal/index.tsx): fix formatting of genericModalPropsType

The formatting of the `genericModalPropsType` interface is fixed to improve readability and maintain consistency with the codebase.
2023-12-01 17:23:46 -03:00
Gabriel Luiz Freitas Almeida
2a8c972d49 Fix autogenerate diffs error handling 2023-12-01 17:02:37 -03:00
cristhianzl
99f0943f23 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-12-01 16:44:43 -03:00
cristhianzl
c8c899d1ad fix(parameterComponent): import cloneDeep from lodash to fix missing import error
feat(parameterComponent): add support for process.env.PORT environment variable to be able to run app on a configurable port
fix(PageComponent): add conditional logic to fit the view based on the number of nodes in the flow
2023-12-01 16:44:37 -03:00
Gabriel Luiz Freitas Almeida
dcefb8363c Fix migration error and initialize database in
utils.py
2023-12-01 16:37:11 -03:00
Gabriel Luiz Freitas Almeida
8f04139ddd Fix migration and add confirmation prompt 2023-12-01 16:30:59 -03:00
Gabriel Luiz Freitas Almeida
ab212a046f Fix migration issue with autogenerate diffs 2023-12-01 16:30:54 -03:00
Gabriel Luiz Freitas Almeida
be5cdc9c47 Remove store_api_key and is_component columns from
user and flow tables
2023-12-01 16:30:43 -03:00
Gabriel Luiz Freitas Almeida
cb6228cea1 Fix imports and initialize services with
fix_migration option
2023-12-01 16:30:35 -03:00
Gabriel Luiz Freitas Almeida
163ef6973b Fix database initialization and migration 2023-12-01 16:30:26 -03:00
Gabriel Luiz Freitas Almeida
6aa1698383 Fix ValueError in Vertex class 2023-12-01 16:27:15 -03:00
Gabriel Luiz Freitas Almeida
1bdbbd12c0 Fix store_api_key column type 2023-12-01 15:46:16 -03:00
Gabriel Luiz Freitas Almeida
9a5b57a65a 🔥 refactor(types.py): remove unused import and variable 'custom_component_creator' to improve code cleanliness and maintainability 2023-12-01 15:12:19 -03:00
Gabriel Luiz Freitas Almeida
13135d3948 Update langflow imports in validate.py 2023-12-01 15:10:34 -03:00
Gabriel Luiz Freitas Almeida
4d6973ad19 Remove redundant base types from
CUSTOM_COMPONENT_SUPPORTED_TYPES
2023-12-01 15:10:24 -03:00
Gabriel Luiz Freitas Almeida
0bff0407b8 Remove unused import and commented code 2023-12-01 15:10:16 -03:00
Gabriel Luiz Freitas Almeida
a62d0bbb6b Refactor import statements in constants.py 2023-12-01 14:35:22 -03:00
Gabriel Luiz Freitas Almeida
ead79e802d Fix import statements and add missing Prompt class 2023-12-01 13:14:17 -03:00
Gabriel Luiz Freitas Almeida
b1224ddb63 feat(custom_component.py): add _tree attribute to store code tree for better performance
🔧 refactor(custom_component.py): refactor get_code_tree method to use the _tree attribute
🔧 refactor(custom_component.py): refactor get_build_method method to use the tree attribute
🔧 refactor(custom_component.py): refactor get_main_class_name method to use the tree attribute
🔧 refactor(custom_component.py): refactor build_template_config method to use the tree attribute
🔧 refactor(custom_component.py): refactor load_flow method to use import statement on separate lines for better readability
2023-12-01 13:12:48 -03:00
Gabriel Luiz Freitas Almeida
7a2ba97b4c Add has_return attribute to CallableCodeDetails
class
2023-12-01 13:12:35 -03:00
Gabriel Luiz Freitas Almeida
4583d30f4c feat(code_parser.py): add support for parsing return statement in function or method nodes
🐛 fix(code_parser.py): fix import formatting to improve readability
 feat(code_parser.py): add support for parsing function arguments and body in function or method nodes
2023-12-01 13:12:19 -03:00
Gabriel Luiz Freitas Almeida
90621f509b Refactor necessary_imports in validate.py 2023-11-30 18:06:27 -03:00