Commit graph

6,787 commits

Author SHA1 Message Date
Lucas Oliveira
d19fdf5373 Added colors to types 2023-12-04 16:41:13 -03:00
Gabriel Luiz Freitas Almeida
907c3ca9f7 Refactor test_agents_template.py by removing
unused test cases and initializing agent template
2023-12-04 16:25:43 -03:00
Gabriel Luiz Freitas Almeida
53910dbce7 Fix type annotations and imports in code 2023-12-04 16:25:42 -03:00
Gabriel Luiz Freitas Almeida
ee8efdf6c5 Update pydantic import in AnthropicLLM.py 2023-12-04 16:25:42 -03:00
Lucas Oliveira
755f8c6e70 Fixed icon size and naming 2023-12-04 16:07:52 -03:00
Lucas Oliveira
6e353ba3ee Removed position from component upload 2023-12-04 15:56:59 -03:00
Lucas Oliveira
7e12316022 Added component drop on ReactFlow 2023-12-04 15:56:59 -03:00
Gabriel Luiz Freitas Almeida
de392c5677 Update platformdirs and posthog versions 2023-12-04 15:46:52 -03:00
Gabriel Luiz Freitas Almeida
f29213a7c6 🐛 fix(api_key/model.py): make 'name' field nullable with a default value of None to allow for optional name values in ApiKeyBase model 2023-12-04 15:44:35 -03:00
Gabriel Luiz Freitas Almeida
c05108230e Fix database initialization issue 2023-12-04 15:44:35 -03:00
Gabriel Luiz Freitas Almeida
f1773a906c Fix database initialization issue and add delay
after upgrade
2023-12-04 15:44:34 -03:00
Gabriel Luiz Freitas Almeida
9a697362cb Add database migration scripts 2023-12-04 15:44:33 -03:00
Gabriel Luiz Freitas Almeida
98d5351d87 Fix anthropic_api_key handling in AnthropicLLM.py 2023-12-04 15:44:33 -03:00
Gabriel Luiz Freitas Almeida
d2c616ab76 Update bcrypt version to 4.0.1 2023-12-04 15:44:32 -03:00
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