Commit graph

7,638 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
bd8c709870 🔄 chore(constants.py): update CHAT_OPENAI_MODELS list to reflect the latest available models
🔄 chore(test_llms_template.py): update test case to use the latest model name in the CHAT_OPENAI_MODELS list
2023-11-08 12:44:46 -03:00
Gabriel Luiz Freitas Almeida
5fa3a72207
feat: redis vector store client (#1114) 2023-11-08 11:52:52 -03:00
Gabriel Luiz Freitas Almeida
5affcdf987 🔧 fix(storeContext.tsx): add missing import for checkHasApiKey function in API controller
🔧 fix(API/index.ts): add checkHasApiKey function to check if store has an API key
2023-11-07 21:10:13 -03:00
Gabriel Luiz Freitas Almeida
09ddf22d74 Add API endpoint to check if store has API key 2023-11-07 21:09:50 -03:00
Gabriel Luiz Freitas Almeida
761a2f04e3 Update storeContext and API controller 2023-11-07 21:02:30 -03:00
Gabriel Luiz Freitas Almeida
0c882cec44 🔀 refactor(routes.tsx): use useEffect hook to redirect from root to /flows for better code organization and readability 2023-11-07 21:00:48 -03:00
Gabriel Luiz Freitas Almeida
225d6da419 🐛 fix(API/index.ts): add missing type annotations and handle null values in getStoreComponents and searchComponent functions
 feat(API/index.ts): add support for additional query parameters in getStoreComponents and searchComponent functions to enable filtering and sorting of results
🐛 fix(StorePage/index.tsx): handle null values and update searchData and totalRowsCount in StorePage component to prevent errors and ensure accurate data display
 feat(StorePage/index.tsx): add support for sorting by popularity and alphabetical order in handleOrderPage function in StorePage component
2023-11-07 15:43:52 -03:00
Gabriel Luiz Freitas Almeida
f9b57f90a7 🔧 fix(store.py): rename list_components function to get_components to improve semantics and clarity
🔧 fix(service.py): add search, status, tags, and sort parameters to query_components function to enable filtering and sorting of components
 feat(service.py): add build_search_filter_conditions method to build filter conditions for search query in query_components function
2023-11-07 15:42:54 -03:00
Gabriel Luiz Freitas Almeida
c9d22071cd 🐛 fix(API/index.ts): add return type to getStoreComponents function to improve code readability and maintainability
🐛 fix(StorePage/index.tsx): fix comment syntax error to prevent code from being commented out
🐛 fix(StorePage/index.tsx): handle undefined response in getStoreComponents promise chain to prevent errors
2023-11-07 14:39:49 -03:00
Lucas Oliveira
7811999c24 Changed response structure(savedFlows not working) 2023-11-07 14:33:49 -03:00
Gabriel Luiz Freitas Almeida
e81e1c808d 🔧 fix(API/index.ts): import missing StoreComponentResponse type to fix compilation error
🔧 fix(API/index.ts): add return type annotation to getStoreSavedComponents function for better type safety and clarity
2023-11-07 13:42:52 -03:00
anovazzi1
5a5b95afa5 refactor(StorePage/index.tsx): rename variable 'result' to 'data' for clarity and consistency
refactor(StorePage/index.tsx): handle null or undefined value for 'data.results' by assigning an empty array to 'results' variable
2023-11-07 11:34:09 -03:00
anovazzi1
71b3fd4245 fix(StorePage): update setSearchData to use res.results instead of res to fix search data not being set correctly
fix(StorePage): update setErrorApiKey to true to handle error with API key
2023-11-07 11:31:06 -03:00
Gabriel Luiz Freitas Almeida
4c749a0635 Merge remote-tracking branch 'origin/update_langchain' into release 2023-11-06 23:34:29 -03:00
Gabriel Luiz Freitas Almeida
379baa579e Add UUID import and update typing for run.py 2023-11-06 23:25:57 -03:00
Gabriel Luiz Freitas Almeida
79b12b8135
Revert "Release 0.5.6" 2023-11-06 23:18:49 -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
4e147b0852 🔀 refactor(run.py): refactor build_sorted_vertices function signature to include optional user_id parameter for improved flexibility and type hinting 2023-11-06 23:06:22 -03:00
Gabriel Luiz Freitas Almeida
47e5d49c8f 🔨 refactor(LLMChain.py): remove unused import statement for Text from langflow.field_typing
🔨 refactor(utils.py): rename variable 'return_type' to 'return_types' for clarity
🔨 refactor(types.py): add Optional and Union imports, add type hints for user_id parameter in build_field_config and build_langchain_template_custom_component functions
2023-11-06 22:58:32 -03:00
Gabriel Luiz Freitas Almeida
cd71943b43 Refactor API response model and add filter
conditions to list_components and count_components
methods
2023-11-06 22:39:31 -03:00
Gabriel Luiz Freitas Almeida
1e7d725a7d 🐛 fix(types.py): temporarily remove "code" parameter from ChainVertex to fix a bug 2023-11-06 21:28:43 -03:00
Gabriel Luiz Freitas Almeida
d2ee902871 🔥 refactor(types.py): temporarily remove the code parameter from the params dictionary in ChainVertex's build method 2023-11-06 21:24:51 -03:00
Gabriel Luiz Freitas Almeida
b26b7fc6d8 Remove unused import in reactflowUtils.ts 2023-11-06 21:08:31 -03:00
Gabriel Luiz Freitas Almeida
0e3c80bc40 Merge remote-tracking branch 'origin/dev' into v2 2023-11-06 21:08:17 -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
591237c5dd 🔧 chore(util.py): add get_type_from_union_literal function to handle union literals in format_dict function
🔧 chore(util.py): add get_type_from_union_literal function to handle union literals in format_dict function
2023-11-06 21:01:55 -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
6fd476e00f 🔀 chore(custom.py): update import statements to reflect changes in package structure
🔀 chore(custom.py): update import statements for langchain_experimental package
2023-11-06 21:00:56 -03:00
Gabriel Luiz Freitas Almeida
23a141cb8d 🔧 fix(LLMChain.py): add missing import for Text type from langflow.field_typing module
🚀 feat(LLMChain.py): update return type annotation of LLMChainComponent.__call__ method to include Text type
2023-11-06 13:13:21 -03:00
Atharva J
327af1be86 vectara components 2023-11-06 17:07:20 +05:30
Lanznx
12453d1187 feat: redis vector store client 2023-11-06 15:31:58 +08:00
Gabriel Luiz Freitas Almeida
650398f2f4
modify get_current_user to accept api_key as authentication method (#1108) 2023-11-04 10:29:31 -03:00
Maryam Abdoli
b5b66ef077 fix tests by reverting the chat endpoint dependecies 2023-11-03 18:29:51 -04:00
Gabriel Luiz Freitas Almeida
3079318d6a 🔧 chore(constants.py): import BasePromptTemplate to improve code organization and maintainability 2023-11-03 16:47:44 -03:00
Gabriel Luiz Freitas Almeida
00634a2354 Refactor field typing in LLMChainComponent and
related modules
2023-11-03 16:38:56 -03:00
Gabriel Luiz Freitas Almeida
9b23dae530 🐛 fix(chat.py): remove unused user dependency in stream_build function
🐛 fix(chat.py): handle KeyError when retrieving user_id from cache_service
 feat(chat.py): use user_id from cache_service instead of user.id in try_running_celery_task and vertex.build functions
🔧 chore(config.yaml): comment out ConversationChain in chains configuration
🔧 chore(base.py): import SQLDatabaseChain from langchain_experimental.sql module and add it to type_dict
2023-11-03 16:13:15 -03:00
Maryam Abdoli
ef949838e2 fix lints and also the bug in the get_current_user 2023-11-03 13:01:28 -04:00
Gabriel Luiz Freitas Almeida
364d36d194 Fix issues with user authentication and custom
component field config
2023-11-03 13:57:14 -03:00
Gabriel Luiz Freitas Almeida
af8094721f 🔧 chore(custom_component.py): refactor display_name and description attributes to be optional and provide default values 2023-11-03 12:05:21 -03:00
Gabriel Luiz Freitas Almeida
87db2f4d0b 🐛 fix(PromptRunner.py): change beta variable type from string to boolean to match expected type
🐛 fix(Metaphor.py): change beta variable type from string to boolean to match expected type
🐛 fix(GetRequest.py): change beta variable type from string to boolean to match expected type
🐛 fix(JSONDocumentBuilder.py): change beta variable type from string to boolean to match expected type
🐛 fix(PostRequest.py): change beta variable type from string to boolean to match expected type
🐛 fix(UpdateRequest.py): change beta variable type from string to boolean to match expected type
🐛 fix(Chroma.py): change beta variable type from string to boolean to match expected type
🐛 fix(Vectara.py): change beta variable type from string to boolean to match expected type
🐛 fix(component.py): change ERROR_CODE_NULL variable type from dict to string to match expected type
🐛 fix(custom_component.py): change code_class_base_inheritance variable type from dict to string to match expected type
🐛 fix(custom_component.py): change function_entrypoint_name variable type from dict to string to match expected type
🐛 fix(initialize/vector_store.py): change chromadb variable name to chromadb_instance for clarity
🐛 fix(database/manager.py): change expected_columns to use model_fields instead of __fields__ to match new SQLModel version
🐛 fix(database/models/base.py): remove unused model_config variable
🐛 fix(database/models/flow/flow.py): change validator decorator to field_validator to match new pydantic version
🐛 fix(settings.py): change root_validator decorator to model_validator to match new pydantic version
2023-11-03 11:50:03 -03:00
Gabriel Luiz Freitas Almeida
4f2a4ce13c 🔧 chore(custom_component.py): refactor class variables to use assignment instead of type annotations for better readability and consistency 2023-11-03 11:11:30 -03:00
Gabriel Luiz Freitas Almeida
1a8825f491 Add memory info to ConversationChainComponent 2023-11-03 11:11:10 -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
Maryam Abdoli
83425b09cd handle all exceptions during user retrieving 2023-11-03 09:29:24 -04:00
cristhianzl
4b8349d131 fix(baseModal): add "smaller-h-full" size option to improve modal size flexibility
fix(exportModal): update size prop of BaseModal to "smaller-h-full" to match the new size option
2023-11-03 10:21:08 -03:00
Gladson
819c283fe3
fix(base.py): change import to from platformdirs 2023-11-03 02:36:05 -04:00
Gladson
7713173da7
fix(logger.py): change appdirs dependency to platformdirs 2023-11-03 02:11:12 -04:00
Gladson
307c526d6a
fix(base.py): change appdirs dependency to platformdirs 2023-11-03 02:08:36 -04:00
Gladson
1023522e5e
fix(utils.py): change appdirs dependency to platformdirs 2023-11-03 02:06:25 -04:00
Gabriel Luiz Freitas Almeida
941cdd4990 📦 chore(ConversationChain.py): add ConversationChain component to handle conversations and load context from memory
📦 chore(LLMChain.py): add optional memory parameter to LLMChain build method to support loading context from memory
2023-11-02 22:54:17 -03:00