Commit graph

343 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
d82b98c58b Update import statement for TemplateField 2023-12-10 15:54:33 -03:00
Gabriel Luiz Freitas Almeida
d670d0fd93 Add test for custom component with TemplateField 2023-12-10 15:48:51 -03:00
Gabriel Luiz Freitas Almeida
38bc66472c Add GPT-4 Vision Preview option to chat_open_ai
test
2023-12-05 18:58:46 -03:00
Gabriel Luiz Freitas Almeida
5388423e0e Fix formatting issues in code 2023-12-05 18:39:20 -03:00
Gabriel Luiz Freitas Almeida
c3f9433612 Fix superuser deletion bug 2023-12-05 18:35:14 -03:00
Gabriel Luiz Freitas Almeida
513b9dbaa1 Add TestComponent class to tests/data/component.py 2023-12-05 18:35:04 -03:00
Gabriel Luiz Freitas Almeida
74d3e6d37b Add component test file 2023-12-04 18:14:26 -03:00
Gabriel Luiz Freitas Almeida
491c03e5b6 Update test_component_code path in conftest.py 2023-12-04 18:14:26 -03:00
Gabriel Luiz Freitas Almeida
96ce544582 🔧 fix(test_custom_component.py): fix import statement to match renamed function and module names
🔧 fix(test_custom_component.py): fix function calls to match renamed function names
2023-12-04 18:14:25 -03:00
Gabriel Luiz Freitas Almeida
e3a1f39c87 Add tests for custom component validation and
template generation
2023-12-04 17:23:33 -03:00
Gabriel Luiz Freitas Almeida
327cd0b462 Add test_component.py fixture 2023-12-04 17:23:32 -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
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
2532581e02 🐛 fix(base.py): change 'suffixes' to 'fileTypes' in Vertex and LangChainTypeCreator classes to improve consistency and readability
🐛 fix(base.py): remove 'suffixes' attribute from TemplateFieldCreator class as it is duplicate and not used

🐛 fix(base.py): change 'suffixes' to 'file_types' in TOOL_INPUTS dictionary to improve consistency and readability

🐛 fix(base.py): remove 'suffixes' attribute from TemplateFieldCreator class as it is duplicate and not used

🐛 fix(frontend_node/base.py): remove 'suffixes' attribute from FrontendNode class as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from
2023-11-29 10:13:08 -03:00
Gabriel Luiz Freitas Almeida
64e8d4bbc7 Update poll_task_status sleep time 2023-11-28 19:39:40 -03:00
Gabriel Luiz Freitas Almeida
86ce36426a Refactor vertex lookup using a dictionary 2023-11-28 17:56:30 -03:00
Gabriel Luiz Freitas Almeida
71473fcec6 Refactor test_endpoints.py file 2023-11-28 14:35:50 -03:00
Gabriel Luiz Freitas Almeida
b7cb39b41d Fix assertion in test_build_graph 2023-11-28 14:35:45 -03:00
Gabriel Luiz Freitas Almeida
5ad879bd9b Fix inconsistencies in test cases 2023-11-27 21:51:31 -03:00
Gabriel Luiz Freitas Almeida
c0ca8bbd04 Remove unnecessary code in test_setup_superuser.py 2023-11-27 17:15:44 -03:00
Gabriel Luiz Freitas Almeida
9d6cafd8a2 Update database model imports 2023-11-24 11:19:22 -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
82bd124139 Fix import order in test_custom_component.py 2023-11-23 08:39:45 -03:00
Gabriel Luiz Freitas Almeida
2d425d5e68 Fix model_dump method call in test_database.py 2023-11-22 08:22:38 -03:00
Gabriel Luiz Freitas Almeida
7a98ce7c36 Adds updated_at and folder cols 2023-11-21 20:57:07 -03:00
Gabriel Luiz Freitas Almeida
020488e97b Fix typos and update method names 2023-11-21 14:49:47 -03:00
Gabriel Luiz Freitas Almeida
171d918e10 Fix incorrect method call in test_database.py 2023-11-21 14:47:30 -03:00
Gabriel Luiz Freitas Almeida
c6dfb90bcf 🐛 fix(flows.py): remove unused imports and fix function call to read_flows
🐛 fix(test_database.py): fix function call to Flow.model_validate
🐛 fix(test_llms_template.py): fix values in test cases
🔥 chore(test_store.py): remove unused test file and test case
2023-11-21 14:45:02 -03:00
Gabriel Luiz Freitas Almeida
883bf3a86a 🔧 fix(test_store.py): fix import statement for CreateComponentResponse in test_search_components function
🚀 feat(test_store.py): update import statement for CreateComponentResponse in test_search_components function to reflect changes in schema
2023-11-16 09:44:35 -03:00
Gabriel Luiz Freitas Almeida
d93df82607 Refactor dependencies and imports in
custom_component.py and add new deps.py file
2023-11-14 22:01:37 -03:00
Gabriel Luiz Freitas Almeida
c36e901a74 Refactor imports and reformat code in
test_setup_superuser.py
2023-11-14 22:00:46 -03:00
Gabriel Luiz Freitas Almeida
2def762831 📦 chore(getters.py): add getters for various services and session in langflow backend
🔨 refactor(test_setup_superuser.py): refactor imports and replace deprecated dependencies in test_setup_superuser.py
2023-11-14 21:57:48 -03:00
Gabriel Luiz Freitas Almeida
60f6d08fc3 Merge remote-tracking branch 'origin/dev' into feature/store 2023-11-14 21:41:58 -03:00
Gabriel Luiz Freitas Almeida
e4d8687a09 ruff format 2023-11-13 18:32:34 -03:00
Gabriel Luiz Freitas Almeida
6f9a10e37f Merge remote-tracking branch 'origin/main' into v2 2023-11-06 23:09:49 -03:00
Gabriel Luiz Freitas Almeida
f4e642ec47 🐛 fix(chains.py): temporarily fix field_type for BaseLanguageModel to improve compatibility
🐛 fix(test_prompts_template.py): fix value of validate_template to False to align with expected behavior
🐛 fix(test_template.py): update value of options to "gpt-4-1106-preview" to reflect the latest version
2023-11-06 21:02:22 -03:00
Gabriel Luiz Freitas Almeida
7929a43bc4 🔄 chore(constants.py): reorder CHAT_OPENAI_MODELS list to prioritize gpt-4-1106-preview model
🔄 chore(test_llms_template.py): update default value and options for model_name field to gpt-4-1106-preview model
2023-11-06 21:01:28 -03:00
Gabriel Luiz Freitas Almeida
8887b5ca28 🐛 fix(util.py): add logic to extract type from Union[Literal['f-string'], Literal['jinja2']] to improve type formatting
🐛 fix(test_prompts_template.py): fix incorrect value for "validate_template" field in test case
2023-11-03 10:47:58 -03:00
Gabriel Luiz Freitas Almeida
71aeda669e 🔨 refactor(test_chains_template.py): remove unused test functions to improve code readability and maintainability 2023-11-03 09:37:23 -03:00
Gabriel Luiz Freitas Almeida
d87b6228df Update function base classes to use Callable
instead of function
2023-11-02 22:45:49 -03:00
Gabriel Luiz Freitas Almeida
c90fe4cc8f 🐛 fix(test_user.py): fix linting issue by adding noqa comment to long lines 2023-11-02 22:35:24 -03:00
Gabriel Luiz Freitas Almeida
93d0ba79f1 🔧 fix(conftest.py): add description field to the FlowCreate object to provide additional information about the flow 2023-11-02 22:20:16 -03:00
Gabriel Luiz Freitas Almeida
780b0d68d8 🔧 fix(test_database.py): add description field to FlowCreate object to fix test failure caused by missing required field
🐛 fix(test_user.py): update error message and details for invalid UUID input in test_patch_user_wrong_id and test_delete_user_wrong_id to provide more specific information
2023-11-02 22:19:58 -03:00
Gabriel Luiz Freitas Almeida
d664131e6c 🔧 fix(__main__.py): add 'store' parameter to update_settings function to enable/disable store feature
 feat(__main__.py): add 'store' option to the run command to enable/disable store feature
🔧 fix(store.py): add check_if_store_is_enabled endpoint to check if store feature is enabled
 feat(store.py): add get_tags endpoint to retrieve tags from the store
🔧 fix(base.py): add STORE setting to enable/disable store feature
🔧 fix(schema.py): rename 'likes_count' field to 'liked_by_count' in ComponentResponse and ListComponentResponse
🔧 fix(service.py): change default sorting in query_components function to sort by 'count(liked_by)'
 test(test_store.py): update sort parameter in test_search_components to 'count(liked_by)'
2023-10-25 23:12:23 -03:00
Lucas Oliveira
42d56f70ed Revert "Merge branch 'release' into dev"
This reverts commit dd3f3d4ca8, reversing
changes made to 27bc4c5498.
2023-10-25 20:14:28 -03:00
Lucas Oliveira
dd3f3d4ca8 Merge branch 'release' into dev 2023-10-25 20:06:21 -03:00