Commit graph

5,725 commits

Author SHA1 Message Date
anovazzi1
5a1ddfb9b3 fix(tabsContext.tsx): add console.log to debug text variable in TabsProvider
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a collection
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a flow
2023-10-17 21:47:13 -03:00
anovazzi1
d68f2cbbab feat(dragAndDrop.spec.ts): add tests for auto_login functionality
The `dragAndDrop.spec.ts` file was added to the `src/frontend/tests/onlyFront` directory. This file contains tests for the auto_login functionality. Two tests were added:

1. `auto_login sign in`: This test simulates signing in with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, waits for the ".community-pages-flows-panel" selector to be present, and asserts that it has children.

2. `auto_login block_admin`: This test simulates accessing the admin section with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, navigates to the login page, clicks on the "Community Examples" button again, navigates to the admin page, clicks on the "Community Examples" button again, navigates to the admin login page, and clicks on the "Community Examples" button.

These tests were added to ensure the proper functioning of the auto_login feature.
2023-10-17 21:47:13 -03:00
anovazzi1
f6d369dd7b created assets page 2023-10-17 21:47:13 -03:00
Gabriel Luiz Freitas Almeida
2c3a36705c
Bump langchain to 0.0.312 (#1067) 2023-10-17 10:17:50 -03:00
Gabriel Luiz Freitas Almeida
8f7ebf49db 🔺 chore(pyproject.toml): update langchain dependency to version 0.0.312 for bug fixes and improvements 2023-10-17 10:16:24 -03:00
Gabriel Luiz Freitas Almeida
b8905dec6d 🔧 chore(Vectara.py): change single quotes to double quotes for consistency in source parameter value 2023-10-17 10:15:54 -03:00
Gabriel Luiz Freitas Almeida
275e10daf6 🐛 fix(base.py): make description field optional to allow for cases where no description is provided 2023-10-17 10:15:32 -03:00
Gabriel Luiz Freitas Almeida
9b36e64c57 🐛 fix(BaiduQianfanChatEndpoints.py): add type ignore comments to fix type errors
🐛 fix(BaiduQianfanLLMEndpoints.py): add type ignore comments to fix type errors
2023-10-17 10:13:49 -03:00
Gabriel Luiz Freitas Almeida
e2cf4f0234
support baidu qianfan endpoint for LLM (#1045) 2023-10-17 09:56:58 -03:00
Gabriel Luiz Freitas Almeida
c3c78aab38
update of Vectara component (#1049) 2023-10-17 07:15:51 -03:00
hekai09
851da1cb4e support baidu qianfan endpoint for LLM 2023-10-17 15:22:00 +08:00
anovazzi1
c8d231c331 update make file 2023-10-16 17:29:21 -03:00
anovazzi1
466c158f15 fix(tabsContext.tsx): remove unnecessary noticeData setting when downloading a file
feat(tabsContext.tsx): change the order of arguments in addFlow function call to improve readability
feat(exportModal/index.tsx): add alertContext and setNoticeData to display a warning when saving a file with API keys
feat(exportModal/index.tsx): add a caution message to inform users about the consequences of saving with API keys
2023-10-16 13:57:12 -03:00
Gabriel Luiz Freitas Almeida
d9e69b1ba3 🔧 chore(.env.example): add LANGFLOW_AUTO_LOGIN variable to enable/disable automatic login feature 2023-10-16 09:59:43 -03:00
Gabriel Luiz Freitas Almeida
e5d6e72406
Fix: missing numexpr when using poetry to run (#1040) 2023-10-16 09:47:51 -03:00
Ofer Mendelevitch
7fbb1078da update of Vectara component 2023-10-14 03:03:30 -07:00
Gabriel Luiz Freitas Almeida
7bdf564170 🔧 chore(constants.py): clean up import statements and remove unnecessary whitespace to improve code readability
🐛 fix(custom_component.py): set the type of argument to "Data" if it is not specified to ensure consistency and prevent errors
2023-10-12 19:23:45 -03:00
Gabriel Luiz Freitas Almeida
4366b02c4f 🔀 chore(field_typing): reorganize imports and update __all__ list for better readability and maintainability
🔥 chore(field_typing): remove unused base.py file as it is no longer needed
🔀 chore(constants): update import statements and add type aliases for better readability and maintainability
2023-10-12 19:23:13 -03:00
Gabriel Luiz Freitas Almeida
dad8480ce3 🔨 refactor(HuggingFaceEndpoints.py): update import statement for HuggingFaceEndpoint class to match new file structure
🔧 chore(HuggingFaceEndpoints.py): remove unused import statement for langchain.llms.base module

🔧 chore(HuggingFaceEndpoints.py): remove unused "type" field from task parameter in build method signature

🔧 chore(HuggingFaceEndpoints.py): add default value for task parameter in build method signature

🔧 chore(HuggingFaceEndpoints.py): add default values for huggingfacehub_api_token and model_kwargs parameters in build method signature

🐛 fix(HuggingFaceEndpoints.py): add model_kwargs parameter to HuggingFaceEndpoint constructor to fix missing argument error
2023-10-12 19:22:41 -03:00
Gabriel Luiz Freitas Almeida
964b4ec7f2 🐛 fix(base.py): improve code readability by formatting the CreateTrace function call in multiple lines 2023-10-12 16:29:48 -03:00
Gabriel Luiz Freitas Almeida
6abd5d5343 🐛 fix(base.py): handle cases where value is not a valid int or float to prevent ValueError and assign the original value instead 2023-10-12 16:29:30 -03:00
Gabriel Luiz Freitas Almeida
8f20105b4b 🔧 fix(custom_component.py): fix import statement for CUSTOM_COMPONENT_SUPPORTED_TYPES
🔧 fix(custom_component.py): fix argument type in return statement of CustomComponent.get_args()
🔧 fix(custom_components.py): make description attribute optional in CustomComponentFrontendNode class
2023-10-11 18:33:13 -03:00
Gabriel Luiz Freitas Almeida
846a15f9fd 🐛 fix(base.py): convert "int" and "float" type values to their respective types for better data consistency and type safety 2023-10-11 18:32:56 -03:00
Gabriel Luiz Freitas Almeida
440298861c 🔄 refactor(types.py): update import statement for CUSTOM_COMPONENT_SUPPORTED_TYPES to match new location in field_typing module 2023-10-11 18:32:19 -03:00
Gabriel Luiz Freitas Almeida
df66ae848e 🔀 chore(field_typing): add support for additional types in field_typing/__init__.py
🔀 chore(field_typing): add support for Data type in field_typing/base.py

🔀 chore(field_typing): add constants.py file to define supported types in field_typing

🔀 chore(interface/custom): remove duplicate imports and use field_typing types

🔀 chore(utils): fix syntax error in get_base_classes function
2023-10-11 18:31:05 -03:00
Gabriel Luiz Freitas Almeida
b2205bba8a 🐛 fix(types.py): add output types to the frontend node to improve data integrity and error handling
 feat(types.py): add support for adding output types to the frontend node to ensure valid return types and improve error handling
2023-10-11 17:33:32 -03:00
Gabriel Luiz Freitas Almeida
562ebdec6f
added trace name (#1043)
Fixed https://github.com/logspace-ai/langflow/issues/1042
2023-10-11 15:51:07 -03:00
Guangya Liu
7c9f649f01 added trace name 2023-10-11 14:21:41 -04:00
cristhianzl
4e4fae329a chore(applies.css): update class name in .header-arrangement to improve semantics
chore(applies.css): update class name in .api-modal-tabs to improve semantics
2023-10-11 08:41:26 -03:00
merrygoround-of-life
957da16d6e Fix: missing numexpr when using poetry to run 2023-10-11 12:59:27 +09:00
anovazzi1
2b3e6fd2e3
update makeFiles (#1037) 2023-10-10 20:18:51 -03:00
anovazzi1
06c7328012 update makeFiles 2023-10-10 19:47:09 -03:00
anovazzi1
a95db60a89
prevent code fields to show on group node (#1035)
refactor(reactflowUtils.ts): change display_name of generated group node
from "group Component" to "Group" for better clarity and understanding
2023-10-10 16:01:04 -03:00
anovazzi1
7f9a4a13f2 chore(reactflowUtils.ts): prevent code fields from showing on the group node to improve user experience and maintain consistency
refactor(reactflowUtils.ts): change display_name of generated group node from "group Component" to "Group" for better clarity and understanding
2023-10-10 15:56:25 -03:00
anovazzi1
66700bd30e
Bugfix minimize node (#1032)
some minor bug fixes
2023-10-10 13:51:41 -03:00
anovazzi1
6ae41c265c Merge remote-tracking branch 'origin/dev' into bugfix_minimizeNode 2023-10-10 13:39:01 -03:00
anovazzi1
99662ccc23
New group node (#891) 2023-10-10 13:12:29 -03:00
anovazzi1
0718819a10 fix invalid json strings 2023-10-09 21:26:40 -03:00
anovazzi1
4a8caa609f remove console.log 2023-10-09 21:15:15 -03:00
anovazzi1
94b3aa88b9 add suport to drop collections 2023-10-09 21:13:42 -03:00
igorrCarvalho
e1107ffdf7 Remove blank space 2023-10-09 18:20:23 -03:00
igorrCarvalho
3fd7a3e4cd Fix: Add dict on verification to avoid unknown edge 2023-10-09 18:08:33 -03:00
igorrCarvalho
8e5dd6b0e3 Fix: Add onclick on minimized node to make filter edges work 2023-10-09 17:14:39 -03:00
anovazzi1
a90e5b243f update git ignore 2023-10-09 17:05:03 -03:00
anovazzi1
f7534516ef create shell scripts to run frontend test 2023-10-09 17:04:07 -03:00
Gabriel Luiz Freitas Almeida
4544abe96d
Update README.md (#1020) 2023-10-09 16:53:35 -03:00
Gabriel Luiz Freitas Almeida
c0e25ff911
Valid placeholder name for editFlowSettings component (#1023) 2023-10-09 14:52:24 -03:00
anovazzi1
d419fd6ee4 first shell script to run frontend tests 2023-10-09 12:35:19 -03:00
Cristhian Zanforlin Lousa
9e2b73eac9 🔧 fix(DropdownButtonComponent): add id attribute to Button component to improve accessibility and testing capabilities
🔧 fix(floatComponent): add id attribute to Input component to improve accessibility and testing capabilities
🔧 fix(keypairListComponent): add id attribute to Input components to improve accessibility and testing capabilities
🔧 fix(keypairListComponent): add id attribute to Plus and Minus buttons to improve accessibility and testing capabilities
🔧 fix(toggleShadComponent): add id attribute to Switch component to improve accessibility and testing capabilities
🔧 fix(EditNodeModal): add id attribute to ToggleShadComponent component to improve accessibility and testing capabilities
🔧 fix(PageComponent): add id attribute to div element to improve accessibility and testing capabilities
🔧 fix(extraSidebarComponent): add id attribute to div element to improve accessibility and testing capabilities
🔧 fix(nodeToolbarComponent): add id attribute to div element to improve accessibility and testing capabilities
🔧 fix(nodeToolbarComponent): add id attribute to button element to improve accessibility and testing capabilities
🔧 fix(types/components): add id attribute to ToggleComponentType to improve accessibility and testing capabilities

🚀 feat(keypair.spec.ts): add tests for KeypairListComponent to verify key-value pairs functionality
🚀 feat(float.spec.ts): add tests for FloatComponent to verify float input functionality

🚀 feat: add support for toggling various options in the UI

This commit adds support for toggling various options in the UI. The following options can now be toggled:
- showtemperature
- showtop_k
- showtop_p
- showuse_mlock
- showuse_mmap
- showverbose
- showvocab_only
- showcache
- showecho
- showf16_kv
- showgrammar_path
- showlast_n_tokens_size
- showlogits_all
- showlogprobs
- showlora_base
- showlora_path
- showmax_tokens
- showmetadata
- showmodel_kwargs
- showmodel_path
- shown_batch
- shown_ctx
- shown_gpu_layers
- shown_parts
- shown_threads
- showrepeat_penalty
- showrope_freq_base
- showrope_freq_scale
- showseed
- showstop
- showstreaming
- showsuffix
- showtags

These options can be toggled by clicking on the respective elements in the UI. The commit also includes tests to ensure that the toggling functionality works as expected.
2023-10-09 12:34:35 -03:00
Gabriel Luiz Freitas Almeida
6511522536
Makes workflows run only when needed (#1028) 2023-10-09 11:23:34 -03:00