Commit graph

7,638 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
c23d797677 Add LLMChain component for running queries against
LLMs
2023-11-02 22:46:15 -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
5c5ef227d1 Add Callable to field_typing constants 2023-11-02 22:45:16 -03:00
Gabriel Luiz Freitas Almeida
cef6d78070 🔥 refactor(config.yaml): comment out LLMChain to disable it temporarily
The LLMChain has been commented out in the config.yaml file to disable it temporarily. This change was made to prevent the LLMChain from being used until further notice.
2023-11-02 22:44:43 -03:00
Gabriel Luiz Freitas Almeida
640c2b6ef2 🐛 fix(flow.py): make description field nullable with a default value of None to allow empty descriptions
🐛 fix(user.py): make last_login_at field nullable to handle cases where user has not logged in yet
🐛 fix(user.py): set default values for optional fields in UserUpdate model to None to avoid unexpected behavior
2023-11-02 22:21:10 -03:00
Gabriel Luiz Freitas Almeida
4bfaca5f21 🐛 fix(custom_component.py): fix syntax error in CustomComponent class definition
 feat(custom_component.py): add display_name and description class variables to CustomComponent for better customization and documentation
2023-11-02 22:20:57 -03:00
Gabriel Luiz Freitas Almeida
5320da2f06 🔧 fix(field_typing): import BaseLanguageModel in __init__.py to resolve missing import error
🔧 fix(constants.py): import BaseLanguageModel in constants.py to resolve missing import error
2023-11-02 22:19:19 -03:00
Gabriel Luiz Freitas Almeida
3fe4660c0e 🔀 chore(custom.py): update import statements to reflect changes in package structure 2023-11-02 22:18:38 -03:00
Maryam Abdoli
5686a6fd63 pass the oauth2 token to the fastapi Security 2023-11-02 16:35:00 -04:00
cristhianzl
dd63dadd51 fix(extraSidebarComponent): remove unnecessary export functionality and update tooltip content to "Import" for clarity
The export functionality was removed from the ExtraSidebar component as it was not being used. The tooltip content for the button was also updated to "Import" to accurately reflect its purpose.
2023-11-02 17:28:47 -03:00
cristhianzl
805ee58254 fix(tagsSelectorComponent): reduce the gap between tags in the TagsSelector component for better visual alignment
fix(ConfirmationModal): add top margin to the confirmation button in the ConfirmationModal component to improve spacing

fix(extraSidebarComponent): change the size prop value of the ShareFlowButton component to "small-h-full" for better visual alignment

fix(extraSidebarComponent): add cursor pointer and click event to the text indicating the sharing status in the ShareFlowButton component to toggle the sharePublic state

fix(extraSidebarComponent): reduce the gap between elements in the ConfirmationModal content for better visual alignment

fix(extraSidebarComponent): change the className of the ExportModal button to "extra-side-bar-buttons" and add an onClick event to trigger the uploadFlow function

fix(extraSidebarComponent): change the className of the ExportModal button to "extra-side-bar-buttons" and add an onClick event to trigger the uploadFlow function

fix(extraSidebarComponent): change the className of the Save button in the ExtraSidebar component to "extra-side-bar-buttons" and add an onClick event to trigger the saveFlow function

fix(StorePage): remove console.log statement in the StorePage component

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class
2023-11-02 17:24:35 -03:00
Gabriel Luiz Freitas Almeida
15e244f17a Merge remote-tracking branch 'origin/dev' into v2 2023-11-02 17:09:04 -03:00
Gabriel Luiz Freitas Almeida
008dbd1237 🔀 merge(base.py): merge changes from langfuse branch to base.py
🔀 merge(base.py): merge changes from langfuse branch to base.py to fix import and callback initialization
2023-11-02 16:51:40 -03:00
Gabriel Luiz Freitas Almeida
faa2a79c2b 🔧 fix(getters.py): add import statement for PluginService in getters.py to fix import error
 feat(plugins/base.py): add BasePlugin class with initialize, teardown, and get methods to serve as base class for plugins
 feat(plugins/factory.py): add PluginServiceFactory class to create PluginService instance and load plugins
 feat(plugins/langfuse.py): add LangfusePlugin class with initialize, teardown, and get methods to serve as a plugin for Langfuse
 feat(plugins/service.py): add PluginService class to manage plugins, load plugins, register plugins, get plugins, and teardown plugins
 feat(schema.py): add PLUGIN_SERVICE to ServiceType enum to support plugin service
🔧 fix(settings/base.py): add PLUGIN_DIR optional setting to support specifying plugin directory
🔧 fix(utils.py): add import statement for plugins_factory in utils.py to fix import error
2023-11-02 16:51:03 -03:00
Gabriel Luiz Freitas Almeida
0a4de7ca94 🔧 fix(endpoints.py): update import statement for TaskService to match new file structure
🔧 fix(service.py): update import statement for SettingsService to match new file structure
🔧 fix(__init__.py): update import statement for service module to match new file structure
🔧 fix(factory.py): update import statement for SettingsService to match new file structure
🔧 fix(factory.py): update import statement for TaskService to match new file structure
🔧 fix(conftest.py): update import statement for DatabaseService to match new file structure
2023-11-02 16:18:50 -03:00
Gabriel Luiz Freitas Almeida
75ac412662 🔧 fix(env.py): update import statement for SQLModel in env.py to match new file structure
🔧 fix(chat.py): update import statements for ChatService and BaseCacheService in chat.py to match new file structure
🔧 fix(__init__.py): update import statement for InMemoryCache in __init__.py to match new file structure
🔧 fix(factory.py): update import statement for InMemoryCache, RedisCache, and BaseCacheService in factory.py to match new file structure
🔧 fix(service.py): create new file service.py and move InMemoryCache class from base.py to service.py
 feat(service.py): add InMemoryCache class to provide a simple in-memory cache implementation
 feat(service.py): add RedisCache class to provide a Redis-based cache implementation

🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py): update import statements to reflect changes in file structure
🔨 refactor(factory.py):

📦 chore(service.py): add new file `service.py` to implement DatabaseService class
📦 chore(utils.py): add import statement for DatabaseService in `utils.py`
📦 chore(getters.py): add import statement for DatabaseService in `getters.py`
📦 chore(factory.py): add import statement for SessionService in `factory.py`
📦 chore(service.py): add new file `service.py` to implement SessionService class

📦 chore(service.py): add SettingsService and TaskService classes to handle settings and tasks respectively
🔧 refactor(service.py): refactor load_settings_from_yaml method to load settings from a YAML file and convert keys to uppercase for consistency
🔧 refactor(service.py): refactor get_backend method to return the appropriate backend based on USE_CELERY flag
🔧 refactor(service.py): refactor launch_and_await_task method to handle launching and awaiting tasks based on USE_CELERY flag
🔧 refactor(service.py): refactor launch_task method to handle launching tasks based on USE_CELERY flag
🔧 refactor(service.py): refactor get_task method to get a task based on USE_CELERY flag
🔧 refactor(service.py): refactor check_celery_availability method to check if Celery is available and return its status
🔧 refactor(service.py): refactor USE_CELERY flag to check if Celery is available and set it accordingly
2023-11-02 16:17:24 -03:00
Maryam Abdoli
a39cdb93ee modify get_current_user to accept api_key as authentication method 2023-11-02 10:26:10 -04:00
cristhianzl
192f8f061e Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-02 09:57:13 -03:00
cristhianzl
b3bb568526 feat(storeContext.tsx): add hasApiKey state and setHasApiKey function to storeContext to track if API key is present
fix(StorePage/index.tsx): fix useEffect dependencies and add missing handleChangeTab function
fix(API/index.ts): rename getNumberOfComponents function to getCountComponents to improve semantics
2023-11-02 09:57:03 -03:00
Gabriel Luiz Freitas Almeida
c1bc2de720 🐛 fix(buildTrigger): rename import of TabsState to FlowsState to improve semantics
🐛 fix(EditNodeModal): rename import of TabsState to FlowsState to improve semantics
🐛 fix(formModal): rename import of TabsState to FlowsState to improve semantics
🐛 fix(PageComponent): rename import of TabsState to FlowsState to improve semantics
🐛 fix(reactflowUtils): rename import of TabsState to FlowsState to improve semantics
🐛 fix(utils): rename import of TabsState to FlowsState to improve semantics
🚚 chore(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
 feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port
2023-11-02 09:41:39 -03:00
Gabriel Luiz Freitas Almeida
7ca750bbde 🔧 fix(store.py): add support for filtering components based on is_component parameter in count_components function
🔧 fix(service.py): add support for filtering components based on is_component parameter in StoreService.count_components method
2023-11-02 09:37:41 -03:00
Gabriel Luiz Freitas Almeida
0c90c12c94 🔍 refactor(store.py): add support for filtering components based on is_component flag in list_components function
🔍 refactor(service.py): add support for filtering components based on is_component flag in get_components function
2023-11-02 09:34:02 -03:00
Lucas Oliveira
fad72c6e2c Added new folder on My Collection 2023-11-02 00:58:46 -03:00
Lucas Oliveira
8f2ca05055 Fixed spacing 2023-11-02 00:50:01 -03:00
Lucas Oliveira
843244604d Results and order by design implemented 2023-11-02 00:40:20 -03:00
Lucas Oliveira
b59adffa27 Fixed dropdowns and spacing 2023-11-02 00:28:34 -03:00
Lucas Oliveira
0c7c50b474 Badge design changed 2023-11-02 00:08:20 -03:00
Lucas Oliveira
7f9d28c4e1 Fixed market card design 2023-11-01 23:30:33 -03:00
Lucas Oliveira
fe9ce486d4 Modularized Card Wrap and fixed name of pages 2023-11-01 21:27:06 -03:00
kandakji
752a90030c Merge remote-tracking branch 'upstream/dev' into dev 2023-11-01 19:30:42 +01:00
Gabriel Luiz Freitas Almeida
1f5ad28243 🔧 chore(schema.py): add 'last_tested_version' field to ComponentResponse and ListComponentResponse models for better tracking of component versions
🔧 chore(service.py): include 'last_tested_version' field in the list of fields to retrieve from the store API for better tracking of component versions
2023-11-01 11:44:59 -03:00
Gabriel Luiz Freitas Almeida
58f83aaa98
Bug - sidebar opening (#1084) 2023-11-01 11:34:28 -03:00
Gabriel Luiz Freitas Almeida
d85cd1a3c1
bugfix: patched csv agent (#1095) 2023-11-01 11:16:20 -03:00
Gabriel Luiz Freitas Almeida
a408dd2b26 🐛 fix(FileLoader.py): fix type annotation for loaders_info variable to improve code readability and maintainability
🐛 fix(FileLoader.py): fix type annotation for loader_import variable to improve code readability and maintainability
🐛 fix(FileLoader.py): handle case when selected_loader_info is not a dict to prevent potential errors
🐛 fix(UrlLoader.py): fix type annotation for build method return value to improve code readability and maintainability
🐛 fix(UrlLoader.py): fix type annotation for loader_instance variables to improve code readability and maintainability
2023-11-01 11:12:08 -03:00
Gabriel Luiz Freitas Almeida
a899d8a081 Merge remote-tracking branch 'origin/dev' into FileLoaders 2023-11-01 10:56:49 -03:00
Gabriel Luiz Freitas Almeida
66cbeb8172
Merge branch 'dev' into fixCapitalErrors 2023-11-01 10:52:17 -03:00
anovazzi1
c581a958e3 null handling 2023-11-01 10:19:44 -03:00
Gabriel Luiz Freitas Almeida
4e0273a9df 🐛 fix(service.py): add error handling for HTTP response in StoreService to improve reliability and prevent silent failures 2023-11-01 10:17:44 -03:00
anovazzi1
4310229c2f fix(market-card.tsx): fix logic for updating likes_count and liked_by_user state variables
The logic for updating the `likes_count` and `liked_by_user` state variables in the `handleLike` function was incorrect. This commit fixes the logic to correctly update the state variables based on the previous values. Additionally, it adds error handling for the `postLikeComponent` API call and sets the `likes_count` and `liked_by_user` state variables to their previous values in case of an error.
2023-11-01 10:14:48 -03:00
Gabriel Luiz Freitas Almeida
787a725207 🐛 fix(store.py): remove unnecessary blank line to improve code readability
🐛 fix(service.py): fix incorrect variable name in get_component_likes_count method
🐛 fix(service.py): convert likes count to integer to handle unexpected string values
🐛 fix(service.py): convert component_id to string before sending it in the request payload
2023-11-01 10:03:20 -03:00
anovazzi1
d8c133b5d2 fix(market-card.tsx): update setLikes_count and setLiked_by_user with response values to correctly display likes count and user like status
The changes were made to fix a bug where the likes count and user like status were not being displayed correctly on the market card component in the StorePage. The previous code was using the wrong variable to set the likes count and user like status. The fix updates the code to use the correct response values from the API call to set the likes count and user like status.
2023-11-01 09:54:53 -03:00
Gabriel Luiz Freitas Almeida
85647091f7 🐛 fix(store.py): change return value from dictionary to UsersLikesResponse object to improve readability and maintainability
🐛 fix(service.py): handle case when component is not found and raise ValueError to provide more informative error message
2023-11-01 09:52:58 -03:00
Gabriel Luiz Freitas Almeida
68198bfd41 🐛 fix(store.py): retrieve likes count after liking a component to update the response with the latest count
 feat(schema.py): update UsersLikesResponse model to include likes_count and liked_by_user fields
 feat(service.py): add get_component_likes_count method to retrieve the number of likes for a component
2023-11-01 09:52:57 -03:00
anovazzi1
2c3199ad0b format code 2023-11-01 09:49:10 -03:00
anovazzi1
24a7b2ca8a fix(API/index.ts): add postLikeComponent function to handle liking a component and update the liked_by_user and likes_count states accordingly
fix(market-card.tsx): add handleLike function to handle liking a component and update the liked_by_user and likes_count states accordingly
fix(market-card.tsx): update the Heart icon to be filled and have a destructive color if the component is liked by the user
fix(market-card.tsx): update the number of likes to be the likes_count state
fix(StorePage/index.tsx): set setErrorApiKey to false to clear any previous API key error
feat(types/store/index.ts): add liked_by_user property to storeComponent type to indicate if the component is liked by the user
2023-11-01 09:49:10 -03:00
Gabriel Luiz Freitas Almeida
75079731c9 🐛 fix(store.py): fix indentation issue in list_components function to improve code readability
🐛 fix(service.py): remove unused user_data parameter in get_liked_by_user_components function
🐛 fix(utils.py): rename in_users_collection attribute to in_user_collection for consistency
2023-11-01 09:45:42 -03:00
Gabriel Luiz Freitas Almeida
0339072079 🐛 fix(store.py): add missing import for user_data_context and update_components_with_user_data functions
 feat(store.py): add support for user_data_context context manager to fetch and set user data for requests made inside the context
 feat(store.py): add support for in_user_collection attribute in ListComponentResponse schema to indicate if a component is in the user's collection
🐛 fix(store.py): fix get_liked_by_user_components function to use user_data_var context variable instead of making the request multiple times
🐛 fix(store.py): fix get_components_in_users_collection function to use user_data_var context variable instead of making the request multiple times
 feat(store.py): add update_components_with_user_data function to update components with user data (liked_by_user and in_users_collection attributes)
2023-11-01 09:31:50 -03:00
cristhianzl
6799007514 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-01 09:12:01 -03:00
Gabriel Luiz Freitas Almeida
7fc4d54055 🐛 fix(store.py): change type of store_api_Key parameter from str to Optional[str] to handle case when user does not provide an API key 2023-11-01 09:04:46 -03:00
Gabriel Luiz Freitas Almeida
04b047a823 🐛 fix(store.py): fix indentation issue and remove unnecessary comments
🐛 fix(schema.py): remove default value for liked_by_user attribute in ListComponentResponse

The indentation issue in `store.py` was causing the code to execute the wrong logic. The unnecessary comments were removed to improve code readability.

In `schema.py`, the default value for the `liked_by_user` attribute in the `ListComponentResponse` class was removed to ensure that it is only set when needed.
2023-11-01 08:58:21 -03:00