Commit graph

6,496 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
bcd13e18f3 Fix missing type for argument in CustomComponent
class
2023-11-23 10:37:59 -03:00
Gabriel Luiz Freitas Almeida
65c1a1b241 Add typing imports to constants.py 2023-11-23 10:37:44 -03:00
Gabriel Luiz Freitas Almeida
1da20fadef Fix async issue in CustomComponent and
decrypt_api_key function
2023-11-23 10:03:48 -03:00
Gabriel Luiz Freitas Almeida
49da01345e Fix variable type annotation in CodeParser class 2023-11-23 10:03:40 -03:00
Gabriel Luiz Freitas Almeida
33d2b9d6aa Refactor agent imports and remove unused imports 2023-11-23 10:03:34 -03:00
Gabriel Luiz Freitas Almeida
fdaca098d9 Fix error in evaluating custom component code 2023-11-23 10:03:27 -03:00
Gabriel Luiz Freitas Almeida
1dc7053fbf Refactor flatten_query_string_lists function 2023-11-23 10:03:19 -03:00
Gabriel Luiz Freitas Almeida
0541078e43 Update typing import in
OpenAIConversationalAgent.py
2023-11-23 10:03:12 -03:00
Gabriel Luiz Freitas Almeida
05d7bd2386 Update OpenAIConversationalAgent.py 2023-11-23 09:36:24 -03:00
Gabriel Luiz Freitas Almeida
842ba2835a Makes build method async to support async in CC 2023-11-23 09:36:15 -03:00
Gabriel Luiz Freitas Almeida
686b97e695 Refactor eval_custom_component_code function
signature
2023-11-23 08:40:59 -03:00
Gabriel Luiz Freitas Almeida
e3c35335be Fix import statement in types.py 2023-11-23 08:40:20 -03:00
Gabriel Luiz Freitas Almeida
d7fdea2a89 Refactor loading.py: Import changes and
instantiate_custom_component modification
2023-11-23 08:40:14 -03:00
Gabriel Luiz Freitas Almeida
096f3ae1fc 🔨 refactor(utils.py): rename get_function_custom to eval_custom_component_code for better clarity and consistency
 feat(utils.py): add type hinting to eval_custom_component_code function for better code readability and maintainability
🔨 refactor(utils.py): move import statement for PromptTemplate to the correct location for better organization
🔨 refactor(utils.py): move import statement for validate to the correct location for better organization
🔨 refactor(utils.py): remove unused imports and reorganize import statements for better organization
2023-11-23 08:39:51 -03:00
Gabriel Luiz Freitas Almeida
82bd124139 Fix import order in test_custom_component.py 2023-11-23 08:39:45 -03:00
Gabriel Luiz Freitas Almeida
783c0e6436 Refactor code to dynamically create classes from
strings
2023-11-23 08:39:39 -03:00
cristhianzl
30cc5723bd Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-22 22:08:14 -03:00
cristhianzl
08b6739e1e fix(nodeToolbarComponent): add data-testid attribute to more options modal for easier testing
fix(floatComponent.spec): update element locator for sideLlamaCpp to llmsLlamaCpp to match changes in the codebase
fix(floatComponent.spec): update element locator for editAdvancedIcon to use getByTestId for more reliable testing
2023-11-22 22:08:04 -03:00
anovazzi1
3db17aa7b6 fix(parameterComponent): update disabled logic to include proxy property in the comparison
fix(sideBarDraggableComponent): remove unnecessary line breaks and update deleteComponent function call
2023-11-22 22:07:33 -03:00
cristhianzl
c1fa3c49ab fix(flowsContext.tsx): remove console.log statement used for debugging
fix(EditNodeModal/index.tsx): fix issue with useRef not updating properly by assigning a new object to myData.current
2023-11-22 21:57:10 -03:00
anovazzi1
339cde462f fix(GenericNode/index.tsx): fix indentation and formatting issues in the code for better readability
feat(GenericNode/index.tsx): add condition to only render ParameterComponent if base_classes array is not empty
2023-11-22 21:22:24 -03:00
Gabriel Luiz Freitas Almeida
fb3e4b88c5 Remove unused code and comments 2023-11-22 21:21:05 -03:00
Gabriel Luiz Freitas Almeida
0cc0d8b556 Fix return type in CallableCodeDetails constructor 2023-11-22 21:21:04 -03:00
Gabriel Luiz Freitas Almeida
da5fe77864 🔧 chore(utils.py): reorder imports to group loguru and langflow imports together for better readability
🐛 fix(utils.py): add raw_output parameter to get_result_and_steps function call to fix a bug where raw output was not being returned correctly
 feat(utils.py): add raw_output to the return statement of process_graph function to expose the raw output of get_result_and_steps function
2023-11-22 21:21:04 -03:00
Gabriel Luiz Freitas Almeida
5ad4da0ab9 Add support for generating a markdown table from
source documents
2023-11-22 21:21:03 -03:00
Gabriel Luiz Freitas Almeida
0a38f2d271 Add output to return statement in
get_result_and_steps function
2023-11-22 21:21:02 -03:00
Gabriel Luiz Freitas Almeida
5bd379e714 Refactor graph utils module and add
raw_topological_sort function
2023-11-22 21:21:02 -03:00
Gabriel Luiz Freitas Almeida
98bacf5f74 Refactor graph base module 2023-11-22 21:21:01 -03:00
Gabriel Luiz Freitas Almeida
a0c985d426 Fix import formatting 2023-11-22 21:21:00 -03:00
Gabriel Luiz Freitas Almeida
eaad86cd29 Refactor field configuration and error handling in
types.py
2023-11-22 21:20:59 -03:00
Gabriel Luiz Freitas Almeida
7eb2b27653 Refactor code_parser.py to include aliases in
imports and construct an evaluation environment
for return type
2023-11-22 21:20:58 -03:00
Gabriel Luiz Freitas Almeida
15cc7667a7 🐛 fix(custom_component.py): update import statements and function calls to match changes in utils module
🔀 merge(custom_component.py): merge changes from utils module to handle generic aliases correctly in return type parsing
2023-11-22 21:20:57 -03:00
Gabriel Luiz Freitas Almeida
504088bd82 Refactor schema.py to import typing and reorder
imports
2023-11-22 21:20:56 -03:00
Gabriel Luiz Freitas Almeida
1eb7c770a9 Refactor import statements and handle
OpenAIEmbedding in instantiate_embedding function
2023-11-22 21:20:56 -03:00
Gabriel Luiz Freitas Almeida
5812d3b91e Add type hint extraction functions for
GenericAlias
2023-11-22 21:20:55 -03:00
cristhianzl
eb8ff52ac2 chore(flowsContext.tsx): remove unused imports and variables for better code cleanliness
feat(flowsContext.tsx): add support for creating a new flow with a default name if no flow is provided
feat(flowsContext.tsx): add support for adding a version number to duplicate flow names
feat(flowsContext.tsx): add support for saving a flow to the database and updating its id
feat(flowsContext.tsx): add support for deleting a component flow
feat(extraSidebarComponent/index.tsx): add support for disabling save button when there are no nodes in the flow
2023-11-22 20:45:55 -03:00
igorrCarvalho
51ff8eb032 Fix: Make component search by name instead type to avoid delete on side bar not working 2023-11-22 19:15:46 -03:00
Lucas Oliveira
470a8e3373 Fixing /all calls quantity 2023-11-22 16:58:28 -03:00
Lucas Oliveira
0d785c923a Fixed refreshing flows on refresh page 2023-11-22 16:47:38 -03:00
Lucas Oliveira
71510a21f8 Changed non existent isComponent to be considered as flow 2023-11-22 16:03:24 -03:00
Gabriel Luiz Freitas Almeida
ca662c3937 Update dependencies versions in poetry.lock 2023-11-22 16:02:47 -03:00
Gabriel Luiz Freitas Almeida
c57e9c2392 🐛 fix(flow.py): fix the validation of the "updated_at" field to return the value if it's not None or a datetime object 2023-11-22 16:02:46 -03:00
Lucas Oliveira
dee08d6584 Changed order in which uploaded flows are added 2023-11-22 15:50:55 -03:00
Lucas Oliveira
73b42e917d Fixed dropping file 2023-11-22 15:45:57 -03:00
Lucas Oliveira
b7303fa032 fixed uploadFlow in other places 2023-11-22 14:25:33 -03:00
Gabriel Luiz Freitas Almeida
b633afba8d 🔀 chore(constants.py): reorganize imports in constants.py for better readability and maintainability 2023-11-22 11:00:49 -03:00
Gabriel Luiz Freitas Almeida
77aee1b413 Update icon import names 2023-11-22 10:56:10 -03:00
Gabriel Luiz Freitas Almeida
c091291500 Fix component update logic in StoreService 2023-11-22 08:47:11 -03:00
Gabriel Luiz Freitas Almeida
8de2dc3d46 ⬆️ chore(pyproject.toml): update langchain version to ~0.0.338 and openai version to ^1.3.4 for compatibility and bug fixes
⬆️ chore(pyproject.toml): update huggingface-hub version to ^0.19.0 and rich version to ^13.7.0 for improved functionality and features
2023-11-22 08:22:48 -03:00
Gabriel Luiz Freitas Almeida
2d425d5e68 Fix model_dump method call in test_database.py 2023-11-22 08:22:38 -03:00