62a6a0a8be
* fix: Update KnowledgeBase form and service to handle preprocess provider correctly - Enhanced useKnowledgeBaseForm hook to set preprocessProvider with the correct providerId type. - Modified getKnowledgeBaseParams function to retrieve preprocess provider from the store instead of the base, ensuring accurate provider assignment. * fix: Remove unused providerId from preprocessProvider in useKnowledgeBaseForm hook - Cleaned up the useKnowledgeBaseForm hook by removing the unused providerId property from the preprocessProvider object, ensuring a more accurate representation of the data structure. * format code * feat: Sync preprocess provider updates across knowledge bases - Added a new action to synchronize updates to the preprocess provider across all knowledge bases that reference it. - Updated the usePreprocessProvider hook to dispatch the new sync action after updating the provider. - Modified getKnowledgeBaseParams to ensure the correct preprocess provider is assigned when retrieving knowledge base parameters. * fix: Update sync logic for preprocess provider updates - Modified the syncPreprocessProvider action to merge updates directly into the existing provider object instead of replacing it. - Adjusted the usePreprocessProvider hook to only dispatch the sync action when specific fields (apiHost, apiKey, model) are updated, improving efficiency.